2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2021-03-12 13:58:18 +01:00
parent 964abbee28
commit ab9d10edd3

View File

@@ -35,12 +35,13 @@ $langs->load("companies");
$id = GETPOST('id', 'int');
$ref = GETPOST('ref', 'alpha');
$action = GETPO ST('action', 'aZ09');
$action = GET PO ST('action','aZ09');
// Security check
$fieldvalue = (!empty($id) ? $id : (!empty($ref) ? $ref : ''));
$fieldtype = (!empty($ref) ? 'ref' : 'rowid');
if ($user->socid) {
if ($user->socid)
{
$socid = $user->socid;
}
$result = restrictedArea($user, 'produit|service', $fieldvalue, 'product&product', '', '', $fieldtype);