modif restrict ean for alphanum
This commit is contained in:
parent
720eb1a5ce
commit
6580dbc6a2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user