Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
* refs #3835
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Assepo committed Oct 20, 2015
1 parent 7c012f9 commit 437f5be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions www/lib/HTML/QuickForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1509,8 +1509,6 @@ function getRequiredNote()
*/
function validate()
{
$this->addFormRule(array($this, 'checkSecurityToken'));

if (count($this->_rules) == 0 && count($this->_formRules) == 0 &&
$this->isSubmitted()) {
return (0 == count($this->_errors));
Expand Down Expand Up @@ -1684,6 +1682,7 @@ function process($callback, $mergeFiles = true)
function accept(&$renderer)
{
$this->createSecurityToken();
$this->addFormRule(array($this, 'checkSecurityToken'));
$renderer->startForm($this);
foreach (array_keys($this->_elements) as $key) {
$element =& $this->_elements[$key];
Expand Down

0 comments on commit 437f5be

Please sign in to comment.