From: Tim Düsterhus Date: Sun, 5 Jan 2014 13:52:01 +0000 (+0100) Subject: Fix duplicate tag check when editing X-Git-Tag: 2.0.2~31^2~1^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f313b9009b4c79dba07c27d853563415e0888084;p=GitHub%2FWoltLab%2FWCF.git 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/ --- 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();