0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00

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
This commit is contained in:
Christian Boltz 2013-06-05 22:36:44 +00:00
parent b15319c21a
commit b197e148b3

View File

@ -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;