Fix regression

This commit is contained in:
Laurent Destailleur 2019-02-11 15:40:33 +01:00
parent 27cad29e1e
commit 5c01ec158d

View File

@ -120,7 +120,6 @@ if ($id > 0 || ! empty($ref))
{ {
$result=$object->fetch($id, $ref); $result=$object->fetch($id, $ref);
$search_account = $object->id; // Force the search field on id of account $search_account = $object->id; // Force the search field on id of account
}
if (! ($object->id > 0) ) if (! ($object->id > 0) )
{ {
@ -128,6 +127,8 @@ if (! ($object->id > 0) )
print($langs->trans('ErrorRecordNotFound')); print($langs->trans('ErrorRecordNotFound'));
exit; exit;
} }
}
// 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
$hookmanager->initHooks(array('banktransactionlist', $contextpage)); $hookmanager->initHooks(array('banktransactionlist', $contextpage));