Skip to content
Snippets Groups Projects
Commit 857b8eb3 authored by Regis Houssin's avatar Regis Houssin
Browse files

Added ability to assign a category of product to a customer

parent f74fd049
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
......@@ -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"];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment