Fix regression
This commit is contained in:
parent
27cad29e1e
commit
5c01ec158d
@ -120,14 +120,15 @@ if ($id > 0 || ! empty($ref))
|
||||
{
|
||||
$result=$object->fetch($id, $ref);
|
||||
$search_account = $object->id; // Force the search field on id of account
|
||||
|
||||
if (! ($object->id > 0) )
|
||||
{
|
||||
$langs->load("errors");
|
||||
print($langs->trans('ErrorRecordNotFound'));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
if (! ($object->id > 0) )
|
||||
{
|
||||
$langs->load("errors");
|
||||
print($langs->trans('ErrorRecordNotFound'));
|
||||
exit;
|
||||
}
|
||||
|
||||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||
$hookmanager->initHooks(array('banktransactionlist', $contextpage));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user