View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20635 | Bug reports | Survey editing | public | 2026-08-05 16:31 | 2026-08-05 16:34 |
| Reporter | gabrieljenik | Assigned To | gabrieljenik | ||
| Priority | none | Severity | partial_block | ||
| Status | assigned | Resolution | open | ||
| Product Version | 7.0.x | ||||
| Summary | 20635: Replacement Fields Not Inserted Correctly in Templates with Multiple Editors | ||||
| Description | While reviewing ticket 20607, an issue was identified related to the behavior of replacement fields in templates when multiple editors are present on the same page. Background:Before commit 5f84fe89c50, the first template where replacement fields were correctly displayed and inserted was the Confirmation template. In that context, everything worked as expected. However, in subsequent templates (such as Registration or Basic Admin Notification), all replacement field options resulted in inserting {TOKEN} instead of the selected value. After the mentioned commit, the issue appears to have shifted: Replacement fields now work correctly in Invitation and Reminder templates. The issue persists in other templates. Technical Analysis:The root cause appears to be within the CKEditor plugin limereplacementfields. The plugin uses a <select> element with the ID cquestions to list replacement fields. On pages with multiple editors, multiple elements share the same ID cquestions, which is invalid in HTML. Suggested Fix:Ensure that each replacement field selector has a unique identifier per editor instance, or scope the selector to the active editor context instead of using a global ID. Impact:This affects multiple templates where more than one editor is present, leading to incorrect token insertion and potential misconfiguration of email templates. Notes:The issue is not new but was previously limited to specific templates. Recent changes appear to have shifted where the issue manifests rather than resolving the underlying cause. | ||||
| Steps To Reproduce | Expected Behavior: Actual Behavior: | ||||
| Tags | No tags attached. | ||||
| Bug heat | 0 | ||||
| Complete LimeSurvey version number (& build) | . | ||||
| I will donate to the project if issue is resolved | No | ||||
| Story point estimate | 0 | ||||
| Browser | |||||
| Database type & version | Mysql | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | 8.x | ||||
| related to | 20607 | ready for code review | gabrieljenik | Placeholder fields are empty in the Email Templates editor |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-08-05 16:31 | gabrieljenik | New Issue | |
| 2026-08-05 16:31 | gabrieljenik | Relationship added | related to 20607 |
| 2026-08-05 16:31 | gabrieljenik | Assigned To | => gabrieljenik |
| 2026-08-05 16:31 | gabrieljenik | Status | new => assigned |