1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Resolved Bug Reports' started by a legacy reborn, Nov 25, 2011.

  1. a legacy reborn

    a legacy reborn Well-Known Member

    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.
     
  2. Mike

    Mike XenForo Developer Staff Member

    Fixed. In library/XenForo/Helper/Criteria.php, add the code in red:
    Code:
            if (!isset($user['customFields']) && isset($user['custom_fields']))
            {
                $user['customFields'] = @unserialize($user['custom_fields']);
            }
            else if (!isset($user['customFields']))
            {
                $user['customFields'] = array();
            }
     
    Zaito and a legacy reborn like this.

Share This Page