Skip to content

Commit

Permalink
select all option added
Browse files Browse the repository at this point in the history
  • Loading branch information
eather009 committed Feb 25, 2017
1 parent 78e7b84 commit fbbe20c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/View/Helper/PaginatorHelper.php
Expand Up @@ -1189,7 +1189,7 @@ public function limitControl(array $limits = [], $default = null, array $options
}

if (empty($limits)) {
$limits += [20 => '20', 25 => '25', 50 => '50', 100 => '100'];
$limits += array(''=>__('All'), '20' => '20', '50' => '50', '100' => '100');
}

if (!in_array($default, $limits)) {
Expand All @@ -1198,7 +1198,7 @@ public function limitControl(array $limits = [], $default = null, array $options

ksort($limits);

$out .= $this->Form->control('limit', ($options + ['type' => 'select', 'label' => __("View"), 'value' => $default, 'options' => $limits, 'onChange' => 'this.form.submit()']));
$out .= $this->Form->control('limit', ($options + ['type' => 'select', 'label' => __('View'), 'value' => $default, 'options' => $limits, 'onChange' => 'this.form.submit()']));
$out .= $this->Form->end();

return $out;
Expand Down

0 comments on commit fbbe20c

Please sign in to comment.