mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 00:06:55 +02:00
Fix issue in FieldtypeMulti where $page->field_name("limit=0") would return a pagination rather than ALL
This commit is contained in:
@@ -503,7 +503,7 @@ abstract class FieldtypeMulti extends Fieldtype {
|
|||||||
|
|
||||||
} else if($col === 'limit') {
|
} else if($col === 'limit') {
|
||||||
$value = (int) $value;
|
$value = (int) $value;
|
||||||
if($value > 0) $limit = $value;
|
if($value > -1) $limit = $value;
|
||||||
|
|
||||||
} else if($col === 'start') {
|
} else if($col === 'start') {
|
||||||
$value = (int) $value;
|
$value = (int) $value;
|
||||||
|
Reference in New Issue
Block a user