diff --git a/components/com_content/tmpl/category/default.xml b/components/com_content/tmpl/category/default.xml index 050115148f6ba..73ebd92d99d00 100644 --- a/components/com_content/tmpl/category/default.xml +++ b/components/com_content/tmpl/category/default.xml @@ -25,6 +25,13 @@ edit="true" clear="true" /> + @@ -32,8 +39,8 @@
- JSHOW - JSHOW - JSHOW - J5 - JSHOW - JSHOW - JSHOW - JSHOW - JSHOW - JSHOW -
- JSHOW - JMONTH_PUBLISHED - JSHOW - JPUBLISHED - - JSHOW - JSHOW - JSHOW - - JGLOBAL_CATEGORY_MANAGER_ORDER - JGLOBAL_RATINGS_ASC - JPUBLISHED - JGLOBAL_AUTO - JSHOW - JALL - - JSHOW - JYES - JSHOW - JSHOW - - JSHOW - JHIDE - JSHOW - JYES - JSHOW - JSHOW - JSHOW - JSHOW -
- JSHOW - where($db->quoteName('a.lft') . ' > 0'); // Preload only active values, everything else will be searched via AJAX - if ($this->isRemoteSearch() && $this->value) + if ($this->isRemoteSearch() && (is_array($this->value) && !empty($this->value[0]))) { $query->where('a.id IN (' . implode(',', $this->value) . ')'); } @@ -203,7 +203,7 @@ protected function getOptions() // Block the possibility to set a tag as it own parent if ($this->form->getName() === 'com_tags.tag') { - $id = (int) $this->form->getValue('id', 0); + $id = (int) $this->form->getValue('id', 0); foreach ($options as $option) { @@ -245,7 +245,7 @@ protected function prepareOptionsNested(&$options) { foreach ($options as &$option) { - $repeat = (isset($option->level) && $option->level - 1 >= 0) ? $option->level - 1 : 0; + $repeat = (isset($option->level) && $option->level - 1 >= 0) ? $option->level - 1 : 0; $option->text = str_repeat('- ', $repeat) . $option->text; } }