FIX: Can't generate invoice pdf

This commit is contained in:
Ferran Marcet 2019-01-04 12:00:39 +01:00
parent 4694af0488
commit f3dd875fc7
2 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,6 @@ if (! $sortorder) $sortorder='DESC';
$contextpage=GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'orderlist';
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$object = new Commande($db);
$hookmanager->initHooks(array($contextpage));
$extrafields = new ExtraFields($db);

View File

@ -681,6 +681,7 @@ if ($massaction == 'confirm_createbills')
}
$id = $objecttmp->id; // For builddoc action
$object = $objecttmp;
// Builddoc
$donotredirect = 1;