More in this section

Forums / Developing with Sitefinity / Filtering Null values breaks in upgrade from 4 to 5

Filtering Null values breaks in upgrade from 4 to 5

2 posts, 0 answered
  1. Webteam
    Webteam avatar
    28 posts
    Registered:
    30 Nov 2009
    11 Mar 2012
    Link to this post

    Hello,

    In version 4.4 of sitefinity we are using the following filter expression in the download list

    Visible = true AND Status = Live AND (ourCustomField = null OR ourCustomField= false)
    where ourCustomField is a custom boolean field.
    This all works fine in 4.4, however in version 5 the ourCustomField = null expression generates a cannot parse template exception, it is ok with the ourCustomField = false.  How can you test for a null value in version 5 filter expressions without generating a cannot parse template error?

  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    14 Mar 2012
    Link to this post
    Hi Kris,

    I have replied to you in the support thread. You can share the information with the community if you wish.

    Kind regards,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered