View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0017708||phplist application||Message Send Process||public||26-05-15 16:32||06-07-15 18:04|
|Target Version||3.0.X||Fixed in Version||3.2.0|
|Summary||0017708: Attribute placeholder not replaced when subscriber does not have a value for the attribute.|
|Description||A problem reported in the new user forum about a user attribute placeholder not being replaced when the subscriber does not have a value for that attribute|
I thought in that case the placeholder was replaced by an empty string but that is not the case.
Looking at function getUserAttributeValues(), that returns only the user attributes for which the subscriber has a record in user_user_attribute, but excludes any attributes for which the subscriber does not have a record.
I'm not sure that is the right thing to do. It would be more useful to return all user attributes. If a subscriber does not have a value for any attribute then either an empty string or perhaps null could be returned.
This behaviour might be a side-effect of this earlier Mantis report https://mantis.phplist.org/view.php?id=16671
|Tags||No tags attached.|
Yes, that should be fixed. In the meantime it can be avoided by using a fallback value:
eg Dear [NAME%%Friend]