Fixed filter to not display 'Select an option' but the field name instead

This commit is contained in:
2019-06-05 12:50:42 +02:00
parent 76449b01ec
commit e1f32c142b
16 changed files with 204 additions and 2 deletions

View File

@@ -220,6 +220,11 @@ class ComponentbuilderViewJoomla_components extends JViewLegacy
$this->companynameOptions = $this->getTheCompanynameSelections();
if ($this->companynameOptions)
{
// We do some sanitation for Companyname filter
if (isset($this->companynameOptions[0]) && !ComponentbuilderHelper::checkString($this->companynameOptions[0]->value))
{
unset($this->companynameOptions[0]);
}
// Companyname Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPANYNAME_LABEL').' -',
@@ -242,6 +247,11 @@ class ComponentbuilderViewJoomla_components extends JViewLegacy
$this->authorOptions = $this->getTheAuthorSelections();
if ($this->authorOptions)
{
// We do some sanitation for Author filter
if (isset($this->authorOptions[0]) && !ComponentbuilderHelper::checkString($this->authorOptions[0]->value))
{
unset($this->authorOptions[0]);
}
// Author Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_LABEL').' -',