Minor - add "attributes" parameter to "hidden" element

pull/2458/head
jmontoyaa 8 years ago
parent 141a527708
commit bcbedbe503
  1. 5
      main/inc/lib/formvalidator/FormValidator.class.php

@ -275,10 +275,11 @@ EOT;
/**
* @param string $name
* @param string $value
* @param array $attributes
*/
public function addHidden($name, $value)
public function addHidden($name, $value, $attributes = [])
{
$this->addElement('hidden', $name, $value);
$this->addElement('hidden', $name, $value, $attributes);
}
/**

Loading…
Cancel
Save