Merge pull request #19464 from atm-quentin/FIX_11_TAB_INVOICE

FIX : Urgent onglet contact inaccessible depuis une facture
This commit is contained in:
Laurent Destailleur 2021-11-30 11:45:56 +01:00 committed by GitHub
commit ce8312c744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);