Fixed bug #11979: TCEforms suggest doesn't find everything on large sites and is...
authorRupert Germann <rupi@gmx.li>
Thu, 1 Oct 2009 10:24:13 +0000 (10:24 +0000)
committerRupert Germann <rupi@gmx.li>
Thu, 1 Oct 2009 10:24:13 +0000 (10:24 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6083 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/tceforms/class.t3lib_tceforms_suggest_defaultreceiver.php

index 4bc68ee..9943494 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
 2009-10-01  Rupert Germann  <rupi@gmx.li>
 
        * Follow-up to bug #11357: fixed a parse error in index_re.php
+       * Fixed bug #11979: TCEforms suggest doesn't find everything on large sites and is slow  (thanks to Steffen Gebert)
 
 2009-09-30  Steffen Kamper  <info@sk-typo3.de>
 
index a83f4cc..cfb844f 100644 (file)
@@ -52,13 +52,6 @@ class t3lib_TCEforms_Suggest_DefaultReceiver {
        protected $mmForeignTable = '';
 
        /**
-        * Counter to limit the recursions when querying the table; also needed to choose the range of records to select
-        *
-        * @var integer
-        */
-       protected $recursionCounter = 0;
-
-       /**
         * The select-clause to use when selecting the records (is manipulated and used by different functions, so it has to
         * be a global var)
         *
@@ -156,7 +149,7 @@ class t3lib_TCEforms_Suggest_DefaultReceiver {
                $rows = array();
 
                $this->params = &$params;
-               $this->start  = $this->recursionCounter * 50;
+               $start  = $recursionCounter * 50;
 
                $this->prepareSelectStatement();
                $this->prepareOrderByStatement();
@@ -166,7 +159,7 @@ class t3lib_TCEforms_Suggest_DefaultReceiver {
                                $this->selectClause,
                                '',
                                $this->orderByStatement,
-                               $this->start . ', 50');
+                               $start . ', 50');
 
 
                $allRowsCount = $GLOBALS['TYPO3_DB']->sql_num_rows($res);