Skip to content

Commit

Permalink
Bug: 13900 Don't invalidate the asssignee field if it's empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Mar 5, 2015
1 parent f2b34a2 commit 4bba41a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nag/lib/Form/Type/NagContact.php
Expand Up @@ -6,6 +6,9 @@ class Nag_Form_Type_NagContact extends Horde_Form_Type
{
public function isValid(&$var, &$vars, $value, &$message)
{
if (empty($value)) {
return true;
}
$email = new Horde_Mail_Rfc822_Address($value);
return $email->valid;
}
Expand Down

0 comments on commit 4bba41a

Please sign in to comment.