Merge pull request #8499 from atm-maxime/7.0
FIX service creation, right is tested regarding the product type
This commit is contained in:
commit
dfa37be7e9
1 changed files with 1 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ $duration_unit = GETPOST('duration_unit');
|
|||
if (! empty($user->societe_id)) $socid=$user->societe_id;
|
||||
|
||||
$object = new Product($db);
|
||||
$object->type = $type; // so test later to fill $usercancxxx is correct
|
||||
$extrafields = new ExtraFields($db);
|
||||
|
||||
// fetch optionals attributes and labels
|
||||
|
|
|
|||
Loading…
Reference in a new issue