Fix displaying group-specific error messages
authorMatthias Schmidt <gravatronics@live.com>
Sat, 9 May 2015 07:28:17 +0000 (09:28 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 9 May 2015 07:28:17 +0000 (09:28 +0200)
wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php

index e1a0a5dfdc386f5aca6537c69f0df8a10b2ff028..a0ca0106e294bb59da78cee804a70a13ac7ace7f 100644 (file)
@@ -169,7 +169,7 @@ class UserGroupOptionForm extends AbstractForm {
                                $this->optionType->validate($this->userGroupOption, $optionValue);
                        }
                        catch (UserInputException $e) {
-                               $this->errorType[$e->getField()] = $e->getType();
+                               $this->errorType[$groupID] = $e->getType();
                        }
                        
                        if (!$isAdmin && $this->optionType->compare($optionValue, WCF::getSession()->getPermission($this->userGroupOption->optionName)) == 1) {