Xtream VIP
Total posts: 129
13 Sep 2012 08:34

Hello,

In default filter template, at line 15, are missed if parameter for hiding search text box.

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
13 Sep 2012 20:55

This is what i have in line 15

get('tmpl_core.show_more'), $this->user->getAuthorisedViewLevels())):?>

Cannot find bug?


Xtream VIP
Total posts: 129
14 Sep 2012 02:38

Check please a file default_filters_default.php in the last cobalt arhive v7.9115. This code is from this file

<div>

        <input type="text" class="inputbox search" name="filter_search" value="<?php echo $this->state->get('records.search');?>" />

        <?php if(in_array($params->get('tmpl_core.show_more'), $this->user->getAuthorisedViewLevels())):?>

            <br />

I mean, that we can't hide this line

<input type="text" class="inputbox search" name="filter_search" value="<?php echo $this->state->get('records.search');?>" />

And code should be like

<div>

<?php if(in_array($params->get('tmpl_core.show_search'), $this->user->getAuthorisedViewLevels())):?>

        <input type="text" class="inputbox search" name="filter_search" value="<?php echo $this->state->get('records.search');?>" />

<?php endif;?>

        <?php if(in_array($params->get('tmpl_core.show_more'), $this->user->getAuthorisedViewLevels())):?>

Sergey
Total posts: 13,748
18 Sep 2012 08:08

Got it. Sorry for not understanding quickly. Fixed it for next release.

Powered by Cobalt