?
Referenced as Pull Request for: # 8014 # 8015
avatar rgblogs
rgblogs
4 Oct 2015

Steps to reproduce the issue

Navigate to Joomla Backend -> Components -> Newsfeeds -> Options -> List Layout

Expected result

In filter field, Hide should be red color.screen shot 2015-10-04 at 10 59 42

avatar rgblogs rgblogs - open - 4 Oct 2015
avatar infograf768
infograf768 - comment - 4 Oct 2015

The issue here is that the "Hide" option value is "hide" instead of "0"

<field
            name="filter_field"
            type="radio"
            class="btn-group btn-group-yesno"
            default="1"
            description="JGLOBAL_FILTER_FIELD_DESC"
            label="JGLOBAL_FILTER_FIELD_LABEL"
            >
                <option value="1">JSHOW</option>
                <option value="hide">JHIDE</option>
        </field>

same issue in other core components as com_contact and com_content.
Changing the value in the xml would not be enough, i.e. we would need to change quite a few view files to not use anymore a code similar to
<?php if ($this->params->get('filter_field') != 'hide') : ?>
To be B/C we would have to change this to something like
<?php if ($this->params->get('filter_field') != 'hide' || $this->params->get('filter_field') != '0') : ?>

avatar alikon
alikon - comment - 5 Oct 2015

may i have some test on #8014
@infograf768 hope is B/C

avatar infograf768
infograf768 - comment - 5 Oct 2015

I think that all components should be corrected too, not only newsfeeds

avatar alikon
alikon - comment - 5 Oct 2015

i'll give it a look ...

avatar zero-24
zero-24 - comment - 5 Oct 2015

Closing as we have serveral pulls ;) Thanks.

avatar zero-24 zero-24 - change - 5 Oct 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-10-05 10:56:55
Closed_By zero-24
avatar zero-24 zero-24 - close - 5 Oct 2015

Add a Comment

Login with GitHub to post a comment