Make sure direction values are lowercased to be consistent.

This commit is contained in:
Mark Scherer 2015-10-26 23:20:30 +01:00
parent a99766c897
commit 8287981855
2 changed files with 2 additions and 2 deletions

View file

@ -351,7 +351,7 @@ class PaginatorHelper extends AppHelper {
$title = __(Inflector::humanize(preg_replace('/_id$/', '', $title)));
}
$defaultDir = isset($options['direction']) ? $options['direction'] : 'asc';
$defaultDir = isset($options['direction']) ? strtolower($options['direction']) : 'asc';
unset($options['direction']);
$locked = isset($options['lock']) ? $options['lock'] : false;