edit.php:

- refresh $form_fields after ->set(). This fixes a wrong "allowed quota"
  if creating a mailbox ends up with an error message because of invalid
  values.


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

@ -135,6 +135,8 @@ if ($_SERVER['REQUEST_METHOD'] == "POST" || $active != '') {
$errormsg = $handler->errormsg;
}
$form_fields = $handler->getStruct(); # refresh $form_fields - set() might have changed something
if ($error != 1) {
if (!$handler->store()) {
$errormsg = $handler->errormsg;

Loading…
Cancel
Save