[BUGFIX] Set range for limit field 78/36078/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Sat, 17 Jan 2015 17:01:32 +0000 (18:01 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Sat, 17 Jan 2015 17:05:42 +0000 (18:05 +0100)
The PHP part forces the value of "showLimit" in the record search being
between 0 and 10000. The range is applied to the form field now.

Resolves: #64332
Releases: master
Change-Id: I1e72a22dd7a09b52ee4f207adf6914470d4c3eaa
Reviewed-on: http://review.typo3.org/36078
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php

index 683e403..ef5e2fa 100644 (file)
@@ -506,7 +506,7 @@ class AbstractDatabaseRecordList extends \TYPO3\CMS\Backend\RecordList\AbstractR
                                                <div class="col-xs-3 col-md-3 col-lg-3">
                                                        <div class="input-group">
                                                                <label class="pull-left" for="showLimit">' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.label.limit', TRUE) . ': </label>
-                                                               <input class="form-control" type="number" placeholder="10" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.title.limit', TRUE) . '" name="showLimit" id="showLimit" value="' . htmlspecialchars(($this->showLimit ? $this->showLimit : '')) . '" />
+                                                               <input class="form-control" type="number" min="0" max="10000" placeholder="10" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.title.limit', TRUE) . '" name="showLimit" id="showLimit" value="' . htmlspecialchars(($this->showLimit ? $this->showLimit : '')) . '" />
                                                        </div>
                                                </div>
                                                <div class="col-xs-3 col-md-3 col-lg-3">