Merge pull request #21552 from spooky360/15.0

FIX : fourn/commande/card.php Added "$object" parameter to $formfile->showdocuments call
This commit is contained in:
Laurent Destailleur 2022-07-24 11:39:00 +02:00 committed by GitHub
commit 505531c9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2665,7 +2665,7 @@ if ($action == 'create') {
$delallowed = $usercancreate;
$modelpdf = (!empty($object->model_pdf) ? $object->model_pdf : (empty($conf->global->COMMANDE_SUPPLIER_ADDON_PDF) ? '' : $conf->global->COMMANDE_SUPPLIER_ADDON_PDF));
print $formfile->showdocuments('commande_fournisseur', $objref, $filedir, $urlsource, $genallowed, $delallowed, $modelpdf, 1, 0, 0, 0, 0, '', '', '', $object->thirdparty->default_lang);
print $formfile->showdocuments('commande_fournisseur', $objref, $filedir, $urlsource, $genallowed, $delallowed, $modelpdf, 1, 0, 0, 0, 0, '', '', '', $object->thirdparty->default_lang, '', $object);
$somethingshown = $formfile->numoffiles;
// Show links to link elements