modif restrict ean for alphanum

This commit is contained in:
Marion Muszynski 2016-05-13 16:13:39 +02:00
parent 720eb1a5ce
commit 6580dbc6a2

View File

@ -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;
}