Commit ae6f3c28ebc67d5d585c5e4b9f6962133cd716b8

Authored by aspangaro
2 parents 68bb741f cea36e82
Exists in 3.5 and in 1 other branch 3.6

Merge pull request #97 from aspangaro/3.5

Update 3.5
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>';
... ...
accountingex/customer/lignes.php
... ... @@ -52,7 +52,7 @@ $account_parent = GETPOST(&#39;account_parent&#39;);
52 52 // Security check
53 53 if ($user->societe_id > 0)
54 54 accessforbidden();
55   -if (! $user->rights->accountingex->admin)
  55 +if (! $user->rights->accountingex->access)
56 56 accessforbidden();
57 57  
58 58 $formventilation = new FormVentilation($db);
... ...
accountingex/supplier/lignes.php
... ... @@ -53,7 +53,7 @@ $langs-&gt;load(&quot;accountingex@accountingex&quot;);
53 53 // Security check
54 54 if ($user->societe_id > 0)
55 55 accessforbidden();
56   -if (! $user->rights->accountingex->admin)
  56 +if (! $user->rights->accountingex->access)
57 57 accessforbidden();
58 58  
59 59 $formventilation = new FormVentilation($db);
... ...