From 9a9b4a0d2a1df6b975c87c4b909a6bf8b815ebee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 6 Dec 2013 23:25:09 +0100 Subject: [PATCH] Fix editing of tags --- .../files/lib/acp/form/TagAddForm.class.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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'); + } } } -- 2.20.1