From 6580dbc6a209d16b3acc42a238cdb03e171ff45e Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Fri, 13 May 2016 16:13:39 +0200 Subject: [PATCH] modif restrict ean for alphanum --- modules/eanmanager/ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/eanmanager/ajax.php b/modules/eanmanager/ajax.php index c7d05f1c..d2761a96 100755 --- a/modules/eanmanager/ajax.php +++ b/modules/eanmanager/ajax.php @@ -15,7 +15,7 @@ if((Tools::getValue('token') === Tools::getAdminToken('AdminEANManager'.(int) Ta exit; } - if(!Validate::isEan13($value)) { + if(!Validate::isReference($value)) { echo json_encode(array('result' => 'FORMAT')); exit; }