You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-07 17:42:53 +03:00
PFAHandler:
- set(): call $this->_missing_$fieldname() if a field is not set on $new - new function set_default_value() - typically called from _missing_$fieldname to set the default from $struct AliasHandler: - set default values on $new: - on_vacation and active from $struct default - localpart and domain based on address scripts/shells/alias.php: - convert AddTask to *Handler syntax. It was broken before, see https://sourceforge.net/tracker/?func=detail&aid=3232719&group_id=191583&atid=937964 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1364 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@@ -105,9 +105,13 @@ class AddTask extends Shell {
|
||||
|
||||
$handler = new AliasHandler(1);
|
||||
$handler->init($address);
|
||||
$return = $handler->add($goto);
|
||||
|
||||
if($return == 1) {
|
||||
$values = array(
|
||||
'goto' => explode(',', $goto),
|
||||
);
|
||||
if (!$handler->set($values)) {
|
||||
$this->error("Error:", join("\n", $handler->errormsg));
|
||||
} elseif (!$handler->store()) {
|
||||
$this->error("Error:", join("\n", $handler->errormsg));
|
||||
} else {
|
||||
$this->out("");
|
||||
|
Reference in New Issue
Block a user