From 57ef5a4082a0ace83a6487d8904c52875c76b939 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 7 Oct 2008 12:53:43 +0000 Subject: [PATCH] Added ability to assign a category of product to a customer --- htdocs/categories/categorie.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index 1c6f2893046..8734dd818b3 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -179,6 +179,8 @@ class Categorie */ function update() { + global $conf; + // Clean parameters $this->label=trim($this->label); $this->description=trim($this->description); @@ -217,7 +219,7 @@ class Categorie { $sql .= ", description = '".addslashes($this->description)."'"; } - if ($this->socid) + if ($conf->global->CATEGORY_ASSIGNED_TO_A_CUSTOMER) { $sql .= ", fk_soc = ".$this->socid; }