?
avatar infograf768
infograf768
9 Oct 2019

Steps to reproduce the issue

Display the Installed Languages Manager
.../administrator/index.php?option=com_languages&view=installed

Expected result

As we have no Filter Options, the button should not display at all.
The Clear Button should still be present.

Actual result

The button is present and clicking on it displays an empty <div
installedlanguagefilters

avatar infograf768 infograf768 - open - 9 Oct 2019
avatar joomla-cms-bot joomla-cms-bot - change - 9 Oct 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Oct 2019
avatar SharkyKZ
SharkyKZ - comment - 9 Oct 2019

Duplicate #26199.

avatar infograf768
infograf768 - comment - 9 Oct 2019

Looks like bar.php is missing a parameter

diff --git a/layouts/joomla/searchtools/default/bar.php b/layouts/joomla/searchtools/default/bar.php
index e1bb351..29c8e0f 100644
--- a/layouts/joomla/searchtools/default/bar.php
+++ b/layouts/joomla/searchtools/default/bar.php
@@ -55,13 +55,16 @@
 		</div>
 		<div class="btn-group">
-			<button type="button" class="btn btn-primary hasTooltip js-stools-btn-filter">
-				<?php echo Text::_('JFILTER_OPTIONS'); ?>
-				<span class="fa fa-angle-down" aria-hidden="true"></span>
-			</button>
+		<div class="btn-group">
+			<?php if ($filterButton) : ?>
+				<button type="button" class="btn btn-primary hasTooltip js-stools-btn-filter">
+					<?php echo Text::_('JFILTER_OPTIONS'); ?>
+					<span class="fa fa-angle-down" aria-hidden="true"></span>
+				</button>
+			<?php endif; ?>
 			<button type="button" class="btn btn-primary js-stools-btn-clear mr-2">
 				<?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?>
 			</button>
 		</div>
-		
+
 	<?php endif; ?>
 <?php endif;
avatar infograf768
infograf768 - comment - 9 Oct 2019

this gives
Screen Shot 2019-10-09 at 12 49 03

Does that look OK @SharkyKZ ?

avatar SharkyKZ
SharkyKZ - comment - 9 Oct 2019

Looks fine, I guess.

avatar infograf768
infograf768 - comment - 9 Oct 2019

Closing as we have a patch
#26530

avatar infograf768 infograf768 - change - 9 Oct 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-10-09 11:12:45
Closed_By infograf768
avatar infograf768 infograf768 - close - 9 Oct 2019

Add a Comment

Login with GitHub to post a comment