Skip to content

Commit

Permalink
Merge pull request #5425 from atm-arnaud/fix_4749
Browse files Browse the repository at this point in the history
FIX #4749
  • Loading branch information
eldy committed Jun 30, 2016
2 parents f2bb51a + 0ffe106 commit 5c11192
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htdocs/compta/bank/annuel.php
Expand Up @@ -36,10 +36,10 @@
$ref=GETPOST('ref');

// Security check
$fieldid = (! empty($ref)?$ref:$id);
$fieldname = isset($ref)?'ref':'rowid';
$fieldvalue = (! empty($id) ? $id : (! empty($ref) ? $ref :''));
$fieldtype = (! empty($ref) ? 'ref' :'rowid');
if ($user->societe_id) $socid=$user->societe_id;
$result=restrictedArea($user,'banque',$fieldid,'bank_account','','',$fieldname);
$result=restrictedArea($user,'banque',$fieldvalue,'bank_account&bank_account','','',$fieldtype);

$year_start=GETPOST('year_start');
$year_current = strftime("%Y",time());
Expand Down Expand Up @@ -146,7 +146,7 @@
// Ref
print '<tr><td width="25%">'.$langs->trans("Ref").'</td>';
print '<td colspan="3">';
if ($_GET["account"])
if (!empty($id))
{
if (! preg_match('/,/', $id))
{
Expand Down

0 comments on commit 5c11192

Please sign in to comment.