Fixed Notices do not appear when using criteria from custom user fields

a legacy reborn

Well-known member
#1
Alright here is the issue: I made a notice that uses a custom drop-down field as its criteria. I chose the same option on my account and saved the notice and nothing appeared. To make sure that is was the custom profile field criteria I removed it from the notice and then when I refreshed the page it appeared. The option from the notice itself is called "User choice is among:" Hope I explained it clearly :). Thank you for your patience.
 

Mike

XenForo developer
Staff member
#2
Fixed. In library/XenForo/Helper/Criteria.php, add the code in red:
Rich (BB code):
        if (!isset($user['customFields']) && isset($user['custom_fields']))
        {
            $user['customFields'] = @unserialize($user['custom_fields']);
        }
        else if (!isset($user['customFields']))
        {
            $user['customFields'] = array();
        }
 
Top