Fixed like match pattern in language item search
authorMarcel Werk <burntime@woltlab.com>
Tue, 27 Jan 2015 23:10:33 +0000 (00:10 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 27 Jan 2015 23:10:33 +0000 (00:10 +0100)
wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php

index 168e7e9e5d32deeee6af8f83389e0ac839a987b4..611859f13187047c1bc17a759d070d48e172c3c4 100644 (file)
@@ -128,7 +128,7 @@ class LanguageItemListPage extends AbstractPage {
                $this->languageItemList = new LanguageItemList();
                $this->languageItemList->getConditionBuilder()->add('languageID = ?', array($this->languageID));
                if ($this->languageCategoryID) $this->languageItemList->getConditionBuilder()->add('languageCategoryID = ?', array($this->languageCategoryID));
-               if ($this->languageItem) $this->languageItemList->getConditionBuilder()->add('languageItem LIKE ?', array($this->languageItem.'%'));
+               if ($this->languageItem) $this->languageItemList->getConditionBuilder()->add('languageItem LIKE ?', array('%'.$this->languageItem.'%'));
                if ($this->languageItemValue) $this->languageItemList->getConditionBuilder()->add('((languageUseCustomValue = 0 AND languageItemValue LIKE ?) OR languageCustomItemValue LIKE ?)', array('%'.$this->languageItemValue.'%', '%'.$this->languageItemValue.'%'));
                if ($this->hasCustomValue) $this->languageItemList->getConditionBuilder()->add("languageCustomItemValue IS NOT NULL");
                $this->languageItemList->sqlLimit = 100;