Skip to content

Commit

Permalink
Merge pull request #9983 from hregis/8.0_bug
Browse files Browse the repository at this point in the history
FIX missing field "visible"
  • Loading branch information
eldy committed Nov 10, 2018
2 parents a12c0d9 + ee06f36 commit 5ec602c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/categories/class/categorie.class.php
Expand Up @@ -1043,7 +1043,7 @@ function get_full_arbo($type, $markafterid=0)
$current_lang = $langs->getDefaultLang();

// Init $this->cats array
$sql = "SELECT DISTINCT c.rowid, c.label, c.description, c.color, c.fk_parent"; // Distinct reduce pb with old tables with duplicates
$sql = "SELECT DISTINCT c.rowid, c.label, c.description, c.color, c.fk_parent, c.visible"; // Distinct reduce pb with old tables with duplicates
if (! empty($conf->global->MAIN_MULTILANGS)) $sql.= ", t.label as label_trans, t.description as description_trans";
$sql.= " FROM ".MAIN_DB_PREFIX."categorie as c";
if (! empty($conf->global->MAIN_MULTILANGS)) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."categorie_lang as t ON t.fk_category=c.rowid AND t.lang='".$current_lang."'";
Expand All @@ -1063,6 +1063,7 @@ function get_full_arbo($type, $markafterid=0)
$this->cats[$obj->rowid]['label'] = ! empty($obj->label_trans) ? $obj->label_trans : $obj->label;
$this->cats[$obj->rowid]['description'] = ! empty($obj->description_trans) ? $obj->description_trans : $obj->description;
$this->cats[$obj->rowid]['color'] = $obj->color;
$this->cats[$obj->rowid]['visible'] = $obj->visible;
$i++;
}
}
Expand Down

0 comments on commit 5ec602c

Please sign in to comment.