début ajout possibilité de déterminer si le contenu d'une catégorie sera visible ou
non dans la liste des produits/services, ceci afin de pouvoir cacher les sous-produits par exemple.
This commit is contained in:
parent
b4e4d06123
commit
af7beb0544
@ -54,7 +54,7 @@ class Categorie
|
|||||||
*/
|
*/
|
||||||
function fetch($id)
|
function fetch($id)
|
||||||
{
|
{
|
||||||
$sql = "SELECT rowid, label, description, fk_statut";
|
$sql = "SELECT rowid, label, description, visible";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."categorie WHERE rowid = ".$id;
|
$sql.= " FROM ".MAIN_DB_PREFIX."categorie WHERE rowid = ".$id;
|
||||||
|
|
||||||
$resql = $this->db->query ($sql);
|
$resql = $this->db->query ($sql);
|
||||||
@ -66,7 +66,7 @@ class Categorie
|
|||||||
$this->id = $res['rowid'];
|
$this->id = $res['rowid'];
|
||||||
$this->label = $res['label'];
|
$this->label = $res['label'];
|
||||||
$this->description = stripslashes($res['description']);
|
$this->description = stripslashes($res['description']);
|
||||||
$this->statut = $res['fk_statut'];
|
$this->visible = $res['visible'];
|
||||||
|
|
||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user