XF 1.5 Postbit issue with some members

abdfahim

Well-known member
I am facing a strange issue. In the message postbit, for few registered and valid members, I don't see the string "Test" in their postbit. However, it is visible for other (~90%) members.

What am I missing, why this IF block is returning false for few members? Sorry for this strange question, but I really have no idea what should I check.

from message_user_info template:

<xen:if is="@messageShowCustomFields AND {$user.customFields}">
Test
</xen:if>
 
I just realized, for those users, {$user.customFields} is returning false.

So, it seems like
  • If an user never touched any custom field, {$user.customFields} returns false.
  • If an user filled up any custom field and then cleared later, {$user.customFields} returns true.
Is it like that?
 
Last edited:
Roughly speaking, yes. A field can either not be present in the cache or have an empty value. The cache should generally only be used to check particular field values.
 
Back
Top Bottom