object->id is always empty

This commit is contained in:
Quentin VIAL-GOUTEYRON 2021-11-24 12:04:18 +01:00
parent 9aa5c94612
commit 632147ad88

View File

@ -118,14 +118,6 @@ elseif ($action == 'deletecontact' && $user->rights->facture->creer)
* View
*/
if (empty($object->id)) {
llxHeader();
$langs->load('errors');
echo '<div class="error">'.$langs->trans("ErrorRecordNotFound").'</div>';
llxFooter();
exit;
}
$title = $langs->trans('InvoiceCustomer')." - ".$langs->trans('ContactsAddresses');
$helpurl = "EN:Customers_Invoices|FR:Factures_Clients|ES:Facturas_a_clientes";
llxHeader('', $title, $helpurl);