Closed pronguen closed 3 years ago
@pronguen This is "normal" at this time because the subject is hardcoded into the template (https://github.com/rero/rero-ils/blob/dev/rero_ils/modules/notifications/templates/email/overdue/fre.txt#L1).
In the notification refactoring PR, I simply use "Rappel" subject (removing the numbering).
As OVERDUE messages could be aggregated, we could send 1 reminder for itemA, second reminder for itemB and fourth reminder for itemC in the same message. So it's impossible to determine the subject based on the reminder counter. This is why I choose "Rappel" simple string as subject.
An other solution could be to aggregated reminders notification adding the reminder_counter into the aggregation key. In this case : if we need to process 3 notifs (1st_reminder for itemA, 1st_reminder for itemB, 4th_reminder for itemC), the dispatcher will send 2 mail --> 1 for both 1st_reminder, 1 for the 4th_reminder (the user could receive several emails for overdue notifications in the same day)
@zannkukai Happy to know that it is as expected!
Indeed, I knew the problem of the overdue grouping. Maybe the aggregation only within the same overdue number is better, if the library has e-mail filters based on the e-mail object.
But for now, I am ok with both solutions. So let's follow the easiest way.
@pronguen The reminders workflow allows to choose which template to use for which reminders. So it's possible (and even better ?) to create a new template files in the system for each overdue reminder. At UCLouvain, we will create separate template files for last reminders --> sent by mail with special juridic content. The subject of this mail should be "last reminder before jail !"
Describe the bug
For a 2nd reminder, the reminder number is not the same in the e-mail object and in the note (e-mail body).
To Reproduce
Not clear. Maybe the problem happens with all 2nd reminders. See example.
Expected behavior
The reminder number is the same in the two places.
Context
v1.4.11
Example