Skip to content

Commit

Permalink
Fixed FormControl::setRequired (closes nette#95).
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes authored and dg committed Aug 26, 2010
1 parent b9ecfee commit d0f5cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nette/Forms/Controls/FormControl.php
Expand Up @@ -527,7 +527,7 @@ final public function getRules()
*/
final public function setRequired($message = NULL)
{
$this->rules->addRule(':Filled', $message);
$this->rules->addRule(Form::FILLED, $message);
return $this;
}

Expand Down

0 comments on commit d0f5cef

Please sign in to comment.