Commit cea36e82fda633dbd6d9ad96a669bf14d936d309
1 parent
ff0eb751
Exists in
3.5
and in
1 other branch
Fix :: account_parent is an int, not an other account number
Fix in Dolibarr core on progress
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
accountingex/admin/fiche.php
... | ... | @@ -241,8 +241,8 @@ if ($action == 'create') { |
241 | 241 | print '<td colspan="2">' . $accounting->label . '</td></tr>'; |
242 | 242 | |
243 | 243 | $accp = new AccountingAccount($db); |
244 | - if ($accounting->account_parent) { | |
245 | - $accp->fetch('', $accounting->account_parent); | |
244 | + if (! empty($accounting->account_parent)) { | |
245 | + $accp->fetch($accounting->account_parent, ''); | |
246 | 246 | } |
247 | 247 | print '<tr><td>' . $langs->trans("Accountparent") . '</td>'; |
248 | 248 | print '<td colspan="2">' . $accp->account_number . ' - ' . $accp->label . '</td></tr>'; | ... | ... |