View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 18360 | Bug reports | Plugins | public | 2022-09-16 18:59 | 2026-11-19 22:22 |
| Reporter | DenisChenu | Assigned To | |||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Summary | 18360: beforeEmail event : Unable to replace core replacement in plugin | ||||
| Description | When use emailevent, it can be interesting to use or add own replacement, to use : we can add element in mailer->aReplacements and call a second time $mailer->doReplacements | ||||
| Steps To Reproduce | I work on https://gitlab.com/SondagesPro/TokenManagement/TokenUsersListAndManage/-/blob/master/Utilities.php#L218Update cirrently … | ||||
| Tags | No tags attached. | ||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | |||||
| I will donate to the project if issue is resolved | |||||
| Browser | |||||
| Database type & version | |||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | |||||
| Git branch / Pull Request URL | https://github.com/LimeSurvey/LimeSurvey/pull/2611 | ||||
|
I think it can be very interesting, |
|
|
@ollehar : since there are no real way to test : can merge it like that ? I found it when working on https://gitlab.com/SondagesPro/TokenManagement/TokenUsersListAndManage/-/blob/master/Utilities.php#L240 But here : i replace before the update. |
|
|
Ehm, what kind of change are you suggesting? |
|
|
Oh … lost the link Then plugin can replace core replacement |
|
|
The change from PR #2611 is in LimeSurvey 7: in LimeMailer::doReplacements() the replacements a plugin sets in beforeEmail now override the core and token replacements. Closing as fixed. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2022-09-16 18:59 | DenisChenu | New Issue | |
| 2022-09-16 19:00 | DenisChenu | Summary | Unable to replace core replacement in plugin => beforeEmail event : Unable to replace core replacement in plugin |
| 2022-09-16 19:05 | DenisChenu | Assigned To | => DenisChenu |
| 2022-09-16 19:05 | DenisChenu | Status | new => assigned |
| 2022-09-16 19:05 | DenisChenu | Assigned To | DenisChenu => gabrieljenik |
| 2022-09-16 19:06 | DenisChenu | Status | assigned => ready for code review |
| 2022-09-16 19:06 | DenisChenu | Note Added: 71806 | |
| 2022-09-16 19:06 | DenisChenu | Bug heat | 0 => 2 |
| 2022-09-21 22:03 | gabrieljenik | Assigned To | gabrieljenik => DenisChenu |
| 2022-09-21 22:03 | gabrieljenik | Status | ready for code review => ready for testing |
| 2022-09-22 08:11 | DenisChenu | Note Added: 71882 | |
| 2022-09-22 10:05 | ollehar | Note Added: 71886 | |
| 2022-09-22 10:05 | ollehar | Bug heat | 2 => 4 |
| 2022-09-22 10:27 | DenisChenu | Note Added: 71889 | |
| 2022-09-28 10:51 | DenisChenu | Git branch / Pull Request URL | N/A => https://github.com/LimeSurvey/LimeSurvey/pull/2611 |
| 2022-09-28 10:51 | DenisChenu | Assigned To | DenisChenu => |
| 2022-09-28 10:52 | DenisChenu | Priority | none => normal |
| 2026-11-19 22:22 | c_schmitz | Note Added: 87671 | |
| 2026-11-19 22:22 | c_schmitz | Bug heat | 4 => 6 |
| 2026-11-19 22:22 | c_schmitz | Status | ready for testing => closed |
| 2026-11-19 22:22 | c_schmitz | Resolution | open => fixed |