Skip to content

Commit cfa1f44

Browse files
author
Eugene Tupikov
committed
Merge branch 'ivansal-master'
2 parents 4b170e6 + 7186f0e commit cfa1f44

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Yii2 multiple input change log
44
1.2.17 in development
55
---------------------
66

7+
- Enh: increased default value for the property `limit`
8+
79
1.2.16
810
------
911

src/components/BaseRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ private function prepareMinOption()
163163
private function prepareLimit()
164164
{
165165
if ($this->limit === null) {
166-
$this->limit = 999;
166+
$this->limit = PHP_INT_MAX;
167167
}
168168

169169
if ($this->limit < 1) {
170170
$this->limit = 1;
171171
}
172172

173173
// Maximum number of rows cannot be less then minimum number.
174-
if ($this->limit !== null && $this->limit < $this->min) {
174+
if ($this->limit < $this->min) {
175175
$this->limit = $this->min;
176176
}
177177
}

0 commit comments

Comments
 (0)