Fix edit of product images

This commit is contained in:
Laurent Destailleur 2019-11-28 14:09:41 +01:00
parent d374ce99a1
commit 6ee6c5d514

View File

@ -82,6 +82,8 @@ if ($id > 0 || !empty($ref))
}
$modulepart = 'produit';
$permissiontoadd = (($object->type == Product::TYPE_PRODUCT && $user->rights->produit->creer) || ($object->type == Product::TYPE_SERVICE && $user->rights->service->creer));
/*
* Actions
@ -233,7 +235,6 @@ if ($object->id)
dol_fiche_end();
$permission = (($object->type == Product::TYPE_PRODUCT && $user->rights->produit->creer) || ($object->type == Product::TYPE_SERVICE && $user->rights->service->creer));
$param = '&id='.$object->id;
include_once DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';