Skip to content

Commit

Permalink
FIX: Don't show journal:getNomUrl without data
Browse files Browse the repository at this point in the history
ErrorBadValueForParamNotAString
  • Loading branch information
aspangaro committed Mar 30, 2019
1 parent f7f20df commit 5588fe5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions htdocs/compta/bank/card.php
Expand Up @@ -637,11 +637,12 @@
print '<tr><td>'.$langs->trans("AccountancyJournal").'</td>';
print '<td>';

$accountingjournal = new AccountingJournal($db);
$accountingjournal->fetch($object->fk_accountancy_journal);

print $accountingjournal->getNomUrl(0,1,1,'',1);
if (! empty($object->fk_accountancy_journal)) {
$accountingjournal = new AccountingJournal($db);
$accountingjournal->fetch($object->fk_accountancy_journal);

print $accountingjournal->getNomUrl(0, 1, 1, '', 1);
}
print '</td></tr>';
}

Expand Down

0 comments on commit 5588fe5

Please sign in to comment.