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

Not a Bug Need to explicitly define variables (notices_prepare)

Discussion in 'Resolved Bug Reports' started by Robust, Nov 21, 2015.

  1. Robust

    Robust Well-Known Member

    For the code event notices_prepare (in ViewRenderer/HtmlPublic, _getNoticesContainerParams) if we're calling that event and adding a notice to $noticesList, we need to explicitly define every attribute, leading to mess like this:

    Shouldn't XF be defining default data, not us?
  2. Mike

    Mike XenForo Developer Staff Member

    If you're pushing to $noticeList, then that's expected to be notice records that are complete, so we assume they'll have all the keys we need.

Share This Page