Fixed filter to not display 'Select an option' but the field name instead
This commit is contained in:
@@ -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').' -',
|
||||
|
Reference in New Issue
Block a user