Fixes search for language items with custom values
authorMatthias Schmidt <gravatronics@live.com>
Wed, 26 Feb 2014 16:31:51 +0000 (17:31 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 26 Feb 2014 16:31:51 +0000 (17:31 +0100)
wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php

index eb55efc59ffee51c8dbbdecad98bf11025f24a5e..e2239224dd07b562783e13d1e26ebcef102dd9e0 100644 (file)
@@ -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 <http://opensource.org/licenses/lgpl-license.php>
  * @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();
        }