-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accessing db_additional_subscriber_fields fields in footer vs. tt2 templates #1494
Comments
Just for clarification: When is the |
That would mean the subscriber is not persisted to the database yet but the welcome message already sent out, right? |
sympa/src/lib/Sympa/Request/Handler/subscribe.pm Lines 98 to 129 in f71f5ce
In above, |
In this case the row already exists in database, the column has a default which is used on insert. Thus the field should be populated when sending the welcome message, correct? |
I overlooked |
The database is MariaDB 10.5 |
@igoltz , I could reproduce it. Could you please apply this patch and check if the problem solved? And note: Subscriber's information is included in |
@ikedas , thank you very much. I patch and test asap! |
The variable I don't know why footer and template give different set of variables (it looks simply due to a lack of consideration). Such inconsistencies should be fixed in the future, but for now we'd be better just to fix the code that has not been working. |
@ikedas |
The fix was merged. @igoltz , thank you for reporting bug! A separate issue will be submitted for inconsistencies in the feature. |
Accessing db_additional_subscriber_fields fields in footer works but fails within tt2 templates
Version
6.2.68
Installation method
from source
Expected behavior
user.optout_uuid should be parsed and populated with data in footer and tt2 template files (e.g. welcome.tt2)
Actual behavior
user.optout_uuid returns nothing in tt2 template files
Steps to reproduce
3.1 create/modify footer and enable it in list
3.2 send mailing
Result: URL is created and uuid param is correctly filled (&uuid=123456xyz)
4.1 modify welcome.tt2 for the list
4.2 subscribe to list
Result: URL is created but uuid param is empty (&uuid=)
The text was updated successfully, but these errors were encountered: