Added ability to assign a category of product to a customer
This commit is contained in:
parent
a69ffe024d
commit
57ef5a4082
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user