Added ability to assign a category of product to a customer

This commit is contained in:
Regis Houssin 2008-10-08 09:11:08 +00:00
parent f74fd049aa
commit 857b8eb3bf
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ if ($_POST["action"] == 'update' && $user->rights->categorie->creer)
$categorie->label = $_POST["nom"];
$categorie->description = $_POST["description"];
$categorie->socid = $_POST["socid"];
$categorie->socid = ($_POST["socid"] ? $_POST["socid"] : 'null');
$categorie->visible = $_POST["visible"];
if($_POST['catMere'] != "-1")

View File

@ -100,7 +100,7 @@ if ($_POST["action"] == 'add' && $user->rights->categorie->creer)
$categorie->label = $_POST["nom"];
$categorie->description = $_POST["description"];
$categorie->socid = $_POST["socid"];
$categorie->socid = ($_POST["socid"] ? $_POST["socid"] : 'null');
$categorie->visible = $_POST["visible"];
$categorie->type = $_POST["type"];