[-] BO : fix #PSCFV-4053
This commit is contained in:
@@ -366,7 +366,7 @@ class ValidateCore
|
|||||||
*/
|
*/
|
||||||
public static function isGenericName($name)
|
public static function isGenericName($name)
|
||||||
{
|
{
|
||||||
return empty($name) || preg_match('/^[^<>;=#{}]*$/u', $name);
|
return empty($name) || preg_match('/^[^<>=#{}]*$/u', $name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -404,6 +404,8 @@ class AdminFeaturesControllerCore extends AdminController
|
|||||||
|
|
||||||
if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors))
|
if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors))
|
||||||
$this->redirect_after = self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$this->token;
|
$this->redirect_after = self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$this->token;
|
||||||
|
else if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && count($this->errors))
|
||||||
|
$this->display = 'editFeatureValue';
|
||||||
|
|
||||||
return $object;
|
return $object;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user