Fix saving of languageID for synonyms in TagEditForm
authorTim Düsterhus <timwolla@googlemail.com>
Fri, 6 Dec 2013 22:29:23 +0000 (23:29 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Fri, 6 Dec 2013 22:29:23 +0000 (23:29 +0100)
wcfsetup/install/files/lib/acp/form/TagEditForm.class.php

index 0788085307f75bebb8f644dac683ca82dc306151..9dc1a433e7cf577dc080fcbb6f59b992e2d67050 100644 (file)
@@ -82,11 +82,11 @@ class TagEditForm extends TagAddForm {
                                if (empty($synonym)) continue;
                                
                                // find existing tag
-                               $synonymObj = Tag::getTag($synonym, $this->languageID);
+                               $synonymObj = Tag::getTag($synonym, $this->tagObj->languageID);
                                if ($synonymObj === null) {
                                        $synonymAction = new TagAction(array(), 'create', array('data' => array(
                                                'name' => $synonym,
-                                               'languageID' => $this->languageID,
+                                               'languageID' => $this->tagObj->languageID,
                                                'synonymFor' => $this->tagID
                                        )));
                                        $synonymAction->executeAction();