From ba84f6293c725f06a41a3aa5ddb600fe19d3a5f4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 11 Jan 2015 16:10:20 +0100 Subject: [PATCH] Added limit regardless of selected category The limit origins to the time where we had no pagination, since these is one in place we can safely limit and use offsets instead. --- .../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 e09452da5d..168e7e9e5d 100644 --- a/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php @@ -131,7 +131,7 @@ class LanguageItemListPage extends AbstractPage { 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"); - if (!$this->languageCategoryID) $this->languageItemList->sqlLimit = 100; + $this->languageItemList->sqlLimit = 100; if (!empty($_POST)) { $this->count = $this->languageItemList->countObjects(); -- 2.20.1