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

@ -190,6 +190,11 @@ class ComponentbuilderViewServers extends JViewLegacy
$this->nameOptions = $this->getTheNameSelections();
if ($this->nameOptions)
{
// We do some sanitation for Name filter
if (isset($this->nameOptions[0]) && !ComponentbuilderHelper::checkString($this->nameOptions[0]->value))
{
unset($this->nameOptions[0]);
}
// Name Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_SERVER_NAME_LABEL').' -',
@ -212,6 +217,11 @@ class ComponentbuilderViewServers extends JViewLegacy
$this->protocolOptions = $this->getTheProtocolSelections();
if ($this->protocolOptions)
{
// We do some sanitation for Protocol filter
if (isset($this->protocolOptions[0]) && !ComponentbuilderHelper::checkString($this->protocolOptions[0]->value))
{
unset($this->protocolOptions[0]);
}
// Protocol Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_COMPONENTBUILDER_SERVER_PROTOCOL_LABEL').' -',