Bug #23598 See Comments

many search:toggle_field doesn’t work

Version: 4.2.1 Reporter: benoitlemay

Hi there! I have multiple (3) exp:channel:entries in the same page.. i use search:toggle_field to filter the results.. mf and page_detail are both toggle field

1- {exp:channel:entries channel="artist" search:mf="1" dynamic="no"} 2- {exp:channel:entries channel="artist" search:mf="0" search:page_detail="1" dynamic="no"} 3- {exp:channel:entries channel="artist" search:mf="0" search:page_detail="0" dynamic="no"}

The first one work as expected but 2 and 3. shows all the entries. I tried without dynamic=”no”..

  • After few tests… If i use exact matching like so : 2- {exp:channel:entries channel=”artists” search:mf=”=0” search:page_detail=”=1” dynamic=”no” } 3- {exp:channel:entries channel=”artists” search:mf=”=0” search:page_detail=”=0” dynamic=”no” }

    It works fine… is it normal behavior?

    benoitlemay
    08th May, 2018 at 10:35am
  • The toggle field is an instance where the exact match is a perfect fit and what I’d recommend regardless.

    I’m actually not able to replicate the problem you’re seeing in the current release, and I would expect ‘contains’ to work. But the exact match is what you want here.

    Robin Sowell
    17th May, 2018 at 1:41pm

You must be signed in to comment on a bug report.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases