From 487e7fa2d6a9ea9ef40d6130bfabb27fbe821fcf Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 28 Jan 2015 00:10:33 +0100 Subject: [PATCH] Fixed like match pattern in language item search --- .../install/files/lib/acp/page/LanguageItemListPage.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php b/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php index 168e7e9e5d..611859f131 100644 --- a/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php @@ -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; -- 2.20.1