Commit bcb10352 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5135-filter-enhancement' into '1.4-dev'

Resolve "filter enhancement"

See merge request fusiondirectory/fd!299
parents e787e770 5c1cb4d7
......@@ -167,7 +167,7 @@ class divSelectBox
}
$s_return = '';
$i = $this->_numEntries();
$i = count($this->a_entries);
foreach ($this->a_entries as $s_value) {
$i--;
......
......@@ -45,7 +45,7 @@ class GroupContentFilterElement extends FilterElement
public function update()
{
foreach ($this->types as $type => &$infos) {
$infos['checked'] = isset($_POST['filter_type_'.$type]);
$infos['checked'] = isset($_POST['filter_member_'.$type]);
}
unset($infos);
}
......@@ -54,7 +54,7 @@ class GroupContentFilterElement extends FilterElement
{
$inputs = array();
foreach ($this->types as $type => $infos) {
$inputs['filter_type_'.$type] = array(
$inputs['filter_member_'.$type] = array(
'name' => $infos['infos']['name'],
'desc' => (isset($infos['infos']['description']) ? $infos['infos']['description'] : $infos['infos']['name']).' '.$infos['filter'],
'icon' => (isset($infos['infos']['icon']) ? $infos['infos']['icon'] : NULL),
......
  • SonarQube analysis indicates that quality gate is failed.

    • Security Rating on New Code is passed: Actual value 1
    • Reliability Rating on New Code is passed: Actual value 1
    • Maintainability Rating on New Code is passed: Actual value 1
    • Duplicated Lines on New Code (%) is failed: Actual value 8.33851897946484 > 5

    SonarQube analysis reported no issues.

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment