From f313b9009b4c79dba07c27d853563415e0888084 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 5 Jan 2014 14:52:01 +0100 Subject: [PATCH] Fix duplicate tag check when editing See: https://www.woltlab.com/forum/index.php/Thread/219837-Problem-bei-der-TAG-Verwaltung-Integrity-constraint-violation-1062-Duplicate-ent/ --- wcfsetup/install/files/lib/acp/form/TagEditForm.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php b/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php index 9dc1a433e7..c98db39694 100644 --- a/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php @@ -109,14 +109,14 @@ class TagEditForm extends TagAddForm { * @see \wcf\page\IPage::readData() */ public function readData() { + $this->languageID = $this->tagObj->languageID; + parent::readData(); if (empty($_POST)) { $this->name = $this->tagObj->name; } - $this->languageID = $this->tagObj->languageID; - $synonymList = new TagList(); $synonymList->getConditionBuilder()->add('synonymFor = ?', array($this->tagObj->tagID)); $synonymList->readObjects(); -- 2.20.1