Merge pull request #15826 from FHenry/13.0

fix product/service list right
This commit is contained in:
Laurent Destailleur 2020-12-29 16:54:55 +01:00 committed by GitHub
commit b066e66c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -533,9 +533,6 @@ if ($resql)
//'builddoc'=>$langs->trans("PDFMerge"),
//'presend'=>$langs->trans("SendByMail"),
);
$rightskey = 'produit';
if ($type == Product::TYPE_SERVICE) $rightskey = 'service';
if ($user->rights->{$rightskey}->supprimer) $arrayofmassactions['predelete'] = "<span class='fa fa-trash paddingrightonly'></span>".$langs->trans("Delete");
if (in_array($massaction, array('presend', 'predelete'))) $arrayofmassactions = array();
$massactionbutton = $form->selectMassAction('', $arrayofmassactions);