AliasHandler:

- validate_new_id(): store errormessages in 
  $this->errormsg[$this->id_field] instead of $this->errormsg[]


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1459 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 12 years ago
parent 85fb572db7
commit 2d127bdec8

@ -138,14 +138,14 @@ class AliasHandler extends PFAHandler {
protected function validate_new_id() {
if ($this->id == '') {
$this->errormsg[] = Lang::read('pCreate_alias_address_text_error1');
$this->errormsg[$this->id_field] = Lang::read('pCreate_alias_address_text_error1');
return false;
}
list($local_part,$domain) = explode ('@', $this->id);
if(!$this->create_allowed($domain)) {
$this->errormsg[] = Lang::read('pCreate_alias_address_text_error3');
$this->errormsg[$this->id_field] = Lang::read('pCreate_alias_address_text_error3');
return false;
}

Loading…
Cancel
Save