From: Tim Düsterhus Date: Fri, 6 Dec 2013 22:25:09 +0000 (+0100) Subject: Fix editing of tags X-Git-Tag: 2.0.0~8^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a9b4a0d2a1df6b975c87c4b909a6bf8b815ebee;p=GitHub%2FWoltLab%2FWCF.git Fix editing of tags --- diff --git a/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php index 432420ebc4..0877f91b82 100644 --- a/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php @@ -88,13 +88,15 @@ class TagAddForm extends AbstractForm { } // validate language - if (empty($this->availableLanguages)) { - // force default language id - $this->languageID = LanguageFactory::getInstance()->getDefaultLanguageID(); - } - else { - if (!isset($this->availableLanguages[$this->languageID])) { - throw new UserInputException('languageID', 'notFound'); + if (!isset($this->tagObj)) { + if (empty($this->availableLanguages)) { + // force default language id + $this->languageID = LanguageFactory::getInstance()->getDefaultLanguageID(); + } + else { + if (!isset($this->availableLanguages[$this->languageID])) { + throw new UserInputException('languageID', 'notFound'); + } } }