FIX: Can't generate invoice pdf
This commit is contained in:
parent
4694af0488
commit
f3dd875fc7
@ -102,7 +102,6 @@ if (! $sortorder) $sortorder='DESC';
|
|||||||
$contextpage=GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'orderlist';
|
$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
|
// 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));
|
$hookmanager->initHooks(array($contextpage));
|
||||||
$extrafields = new ExtraFields($db);
|
$extrafields = new ExtraFields($db);
|
||||||
|
|
||||||
|
|||||||
@ -681,6 +681,7 @@ if ($massaction == 'confirm_createbills')
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id = $objecttmp->id; // For builddoc action
|
$id = $objecttmp->id; // For builddoc action
|
||||||
|
$object = $objecttmp;
|
||||||
|
|
||||||
// Builddoc
|
// Builddoc
|
||||||
$donotredirect = 1;
|
$donotredirect = 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user