Merge pull request #8499 from atm-maxime/7.0

FIX service creation, right is tested regarding the product type
This commit is contained in:
Laurent Destailleur 2018-04-05 16:21:06 +02:00 committed by GitHub
commit dfa37be7e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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