View Issue Details

IDProjectCategoryView StatusLast Update
0017708phpList 3 applicationCampaign Send Processpublic06-07-15 18:04
Reporterduncanc Assigned To 
Status resolvedResolutionfixed 
Product Version3.0.12 
Target Version3.0.XFixed in Version3.2.0 
Summary0017708: Attribute placeholder not replaced when subscriber does not have a value for the attribute.
DescriptionA 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
TagsNo tags attached.



26-05-15 17:00

administrator   ~0056164

Yes, that should be fixed. In the meantime it can be avoided by using a fallback value:

eg Dear [NAME%%Friend]


02-07-15 21:37

administrator   ~0056270