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
@ -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 New Issue
Block a user