From 4fbc1855ab13d6dd4ada969e9c97d233a77d456b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 26 Feb 2014 17:31:51 +0100 Subject: [PATCH] Fixes search for language items with custom values --- .../install/files/lib/acp/page/LanguageItemListPage.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php b/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php index eb55efc59f..e2239224dd 100644 --- a/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php @@ -11,7 +11,7 @@ use wcf\util\StringUtil; * Shows a list of language items. * * @author Marcel Werk - * @copyright 2001-2013 WoltLab GmbH + * @copyright 2001-2014 WoltLab GmbH * @license GNU Lesser General Public License * @package com.woltlab.wcf * @subpackage acp.page @@ -117,7 +117,7 @@ class LanguageItemListPage extends AbstractPage { 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->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 <> ''"); + if ($this->hasCustomValue) $this->languageItemList->getConditionBuilder()->add("languageCustomItemValue IS NOT NULL"); if (!$this->languageCategoryID) $this->languageItemList->sqlLimit = 100; $this->languageItemList->readObjects(); } -- 2.20.1