All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Grid search:column does not work in low_variables:pair tag

Mohammed al-Shehri 3 Jan 2014 12:26 problem, complete

I tried this tag:

 
{exp:low_variables:pair var="lv_grid" search:column_one="welcome"}
<p>{lv_grid:column_one} - {lv_grid:column_two}</p>
<br>
{/exp:low_variables:pair}


Where one of the rows has "Welcome" in column_one.

But this tag outputs all rows regardless of search parameter.

Replies

  1. Low 3 Jan 2014 13:33

    This actually is a bug in Grid itself. To fix, open up /system/expressionengine/models/grid_model.php and look up line #363 (EE 2.7.3), which looks like this:

    $this->_field_search($options['search'], $field_id);


    ...change that to...

    $this->_field_search($options['search'], $field_id, $content_type);


    ...which should fix it.

    I also encourage you to report this with EllisLab, as they are responsible for adding the fix to Grid itself.

  2. Mohammed al-Shehri 3 Jan 2014 14:37

    That was the fix.

    Thanks.

    Reporting it to EllisLab.