Added ability to assign a category of product to a customer

This commit is contained in:
Regis Houssin 2008-10-07 12:53:43 +00:00
parent a69ffe024d
commit 57ef5a4082

View File

@ -179,6 +179,8 @@ class Categorie
*/ */
function update() function update()
{ {
global $conf;
// Clean parameters // Clean parameters
$this->label=trim($this->label); $this->label=trim($this->label);
$this->description=trim($this->description); $this->description=trim($this->description);
@ -217,7 +219,7 @@ class Categorie
{ {
$sql .= ", description = '".addslashes($this->description)."'"; $sql .= ", description = '".addslashes($this->description)."'";
} }
if ($this->socid) if ($conf->global->CATEGORY_ASSIGNED_TO_A_CUSTOMER)
{ {
$sql .= ", fk_soc = ".$this->socid; $sql .= ", fk_soc = ".$this->socid;
} }