[BUGFIX] Module -> List + "List only this table" search not working past page 1
authorBjoern Pedersen <bjoern.pedersen@frm2.tum.de>
Fri, 1 Apr 2011 06:37:14 +0000 (08:37 +0200)
committerErnesto Baschny <ernst@cron-it.de>
Fri, 1 Apr 2011 09:39:37 +0000 (11:39 +0200)
Change-Id: I4edd9a020128246e4937dee8acb91ae7f393283d
Resolves: #25603
Reviewed-on: http://review.typo3.org/1390
Reviewed-by: Björn Pedersen
Tested-by: Björn Pedersen
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
typo3/class.db_list.inc

index cdb52ea..5691bf1 100644 (file)
@@ -315,7 +315,7 @@ class recordList extends t3lib_recordList {
                        // Setting form-elements, if applicable:
                $formElements=array('','');
                if ($formFields)        {
-                       $formElements=array('<form action="'.htmlspecialchars($this->listURL()).'" method="post">','</form>');
+                       $formElements=array('<form action="'.htmlspecialchars($this->listURL('', -1, 'pointer')).'" method="post">','</form>');
                }
 
                        // Make level selector:
@@ -726,7 +726,7 @@ class recordList extends t3lib_recordList {
                if ($this->showLimit) {
                        $urlParameters['showLimit'] = $this->showLimit;
                }
-               if ($this->firstElementNumber) {
+               if ((!$exclList || !t3lib_div::inList($exclList, 'pointer')) && $this->firstElementNumber) {
                        $urlParameters['pointer'] = $this->firstElementNumber;
                }
                if ((!$exclList || !t3lib_div::inList($exclList, 'sortField')) && $this->sortField) {