From: Matthias Schmidt Date: Wed, 26 Feb 2014 16:31:51 +0000 (+0100) Subject: Fixes search for language items with custom values X-Git-Tag: 2.0.3~10^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4fbc1855ab13d6dd4ada969e9c97d233a77d456b;p=GitHub%2FWoltLab%2FWCF.git Fixes search for language items with custom values --- 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(); }