mantisbt-plugins / Snippets

Define snippets of text that can be easily pasted into text fields
MIT License
8 stars 12 forks source link

Parameters not expanded in Report Issue page #67

Open vboctor opened 1 year ago

vboctor commented 1 year ago

In the Report issue page, a snippet like the one below is not expanded correctly, fields remain as is. The user, reporter, and project should be know. If we want to get fancy, the handler may be selected in the combobox and can be retrieved from there.

user: {user}
reporter: {reporter}
handler: {handler}
project: {project}
dregad commented 1 year ago

Currently, the replacements are made by the backend, based on the _bugid passed on with the AJAX on the /data endpoint.

In the bug report page, the bug obviously does not exist yet, so doing what you are suggesting would require a change of paradigm (e.g. javascript providing placeholder data, or performing the replacements locally) or some special handling specific for the bug report page.