Merge pull request #7253 from altatof/fix_restrictedarea_parms

FIX : same logic for setting fieldvalue and fieldtype
This commit is contained in:
Laurent Destailleur 2017-08-17 17:22:36 +02:00 committed by GitHub
commit 40b3c7c4d5

View File

@ -110,7 +110,7 @@ if (! empty($canvas))
// Security check
$fieldvalue = (! empty($id) ? $id : (! empty($ref) ? $ref : ''));
$fieldtype = (! empty($ref) ? 'ref' : 'rowid');
$fieldtype = (! empty($id) ? 'rowid' : 'ref');
$result=restrictedArea($user,'produit|service',$fieldvalue,'product&product','','',$fieldtype,$objcanvas);
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context