From 650e4eaa506a2e8dcb3f565e27cb61f7d3d0df57 Mon Sep 17 00:00:00 2001 From: altatof Date: Thu, 10 Aug 2017 16:41:09 +0200 Subject: [PATCH] FIX : same logic for setting fieldvalue and fieldtype --- htdocs/product/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 4c30691318f..9e045b42998 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -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