FIX : same logic for setting fieldvalue and fieldtype
This commit is contained in:
parent
e673b18871
commit
650e4eaa50
@ -90,7 +90,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 thirdparties. Note that conf->hooks_modules contains array array
|
||||
|
||||
Loading…
Reference in New Issue
Block a user