? ? Pending

User tests: Successful: Unsuccessful:

avatar sksuryan
sksuryan
13 Mar 2021

Summary of Changes

Removes this particular redundant condition, since this condition always failed and hence the actual labels were never rendered.
Further, this condition was being used as a fallback in case there wasn't any label present. But no fallback was actually required since in case there wasn't any label defined, it was already set to the default "search".

Also, $filters['filter_search']->label isn't a label value, rather an html label element.

<label for="filter_search" class="visually-hidden">
<?php if (isset($filters['filter_search']->label)) : ?>
<?php echo Text::_($filters['filter_search']->label); ?>
<?php else : ?>
<?php echo Text::_('JSEARCH_FILTER'); ?>
<?php endif; ?>
</label>

Testing Instructions

  • Login to Administrator.
  • In content category, go to articles.
  • Use dev tools to select the search bar.
  • Look for the label element below the input field.

This could be tested in other categories as well which uses search from layouts/joomla/searchtools.

Actual result BEFORE applying this Pull Request

Default "search" label is displayed.

image

Expected result AFTER applying this Pull Request

Actual label should be displayed.

image

Discovered this issue through PR #32660.

avatar sksuryan sksuryan - open - 13 Mar 2021
avatar sksuryan sksuryan - change - 13 Mar 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Mar 2021
Category Layout
avatar ChristineWk ChristineWk - test_item - 13 Mar 2021 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 13 Mar 2021

I have tested this item successfully on 14bcf96


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32670.

avatar jwaisner jwaisner - test_item - 14 Mar 2021 - Tested successfully
avatar jwaisner
jwaisner - comment - 14 Mar 2021

I have tested this item successfully on 14bcf96


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32670.

avatar jwaisner jwaisner - change - 14 Mar 2021
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 14 Mar 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32670.

avatar richard67 richard67 - change - 14 Mar 2021
Labels Added: ? ?
avatar chmst chmst - change - 14 Mar 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-03-14 15:47:05
Closed_By chmst
Labels
avatar chmst chmst - close - 14 Mar 2021
avatar chmst chmst - merge - 14 Mar 2021
avatar chmst
chmst - comment - 14 Mar 2021

Thanks!

avatar sksuryan
sksuryan - comment - 15 Mar 2021

Welcome!

Add a Comment

Login with GitHub to post a comment