From: Matthias Schmidt Date: Sat, 21 May 2016 06:51:24 +0000 (+0200) Subject: Fix error message if no valid user group is selected for automatic assignment X-Git-Tag: 2.1.11~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45e4231947b8c97b5551558505e3f430ece411aa;p=GitHub%2FWoltLab%2FWCF.git Fix error message if no valid user group is selected for automatic assignment --- diff --git a/wcfsetup/install/files/acp/templates/userGroupAssignmentAdd.tpl b/wcfsetup/install/files/acp/templates/userGroupAssignmentAdd.tpl index 8f28e8da55..a411d19f39 100644 --- a/wcfsetup/install/files/acp/templates/userGroupAssignmentAdd.tpl +++ b/wcfsetup/install/files/acp/templates/userGroupAssignmentAdd.tpl @@ -54,7 +54,12 @@
{htmlOptions name='groupID' options=$userGroups selected=$groupID} {if $errorField == 'groupID'} - {lang}wcf.acp.group.assignment.groupID.error.{@$errorType}{/lang} + {if $errorType == 'noValidSelection'} + {lang}wcf.global.form.error.noValidSelection{/lang} + {else} + {lang}wcf.acp.group.assignment.groupID.error.{@$errorType}{/lang} + {/if} + {/if}
diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php index d72f3758f6..362965a914 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php @@ -170,7 +170,7 @@ class UserGroupAssignmentAddForm extends AbstractForm { } if (!isset($this->userGroups[$this->groupID])) { - throw new UserInputException('groupID', 'notValid'); + throw new UserInputException('groupID', 'noValidSelection'); } $hasData = false;