From a282dbcb1bafc3ab5186ec1d6dc259ba9c53abe1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 12 Mar 2021 13:51:55 +0100 Subject: [PATCH] test --- htdocs/product/note.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/product/note.php b/htdocs/product/note.php index 348d5956588..1487c3fcf1c 100644 --- a/htdocs/product/note.php +++ b/htdocs/product/note.php @@ -35,12 +35,13 @@ $langs->load("companies"); $id = GETPOST('id', 'int'); $ref = GETPOST('ref', 'alpha'); -$action = GETPOST('action', 'aZ09'); +$action = GETPO 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);