From 38a6d671930d60369b1c3edf2f56618e2df64727 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Tue, 7 Oct 2008 09:48:01 +0000 Subject: [PATCH] Added ability to assign a category of product to a customer --- htdocs/categories/categorie.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index fba8ddcf7b0..f9ce1c0516e 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -126,6 +126,8 @@ class Categorie global $langs; $langs->load('categories'); + if ($this->socid == -1) $this->socid = 0; + if ($this->already_exists ()) { $this->error=$langs->trans("ImpossibleAddCat"); -- GitLab