[Form Element] Add percent to setName regex

This commit is contained in:
ket4yii 2017-02-15 20:20:18 +07:00 committed by Dmitry Khomutov
parent a12407d02f
commit 086eb82631
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9

View file

@ -28,7 +28,7 @@ abstract class Element
public function setName($name) public function setName($name)
{ {
$this->_name = strtolower(preg_replace('/([^a-zA-Z0-9_\-])/', '', $name)); $this->_name = strtolower(preg_replace('/([^a-zA-Z0-9_\-%])/', '', $name));
return $this; return $this;
} }