Skip to content
This repository was archived by the owner on Oct 12, 2019. It is now read-only.

Commit 6937b68

Browse files
committed
Like using case insensitive search in ArrayDataSource
1 parent c8da44d commit 6937b68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/datasources/array_source.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function conditionsFilter(&$model, $record, $conditions, $or = false) {
248248
break;
249249
case 'LIKE':
250250
$value = preg_replace(array('#(^|[^\\\\])_#', '#(^|[^\\\\])%#'), array('$1.', '$1.*'), $value);
251-
$return = (isset($record[$field]) && preg_match('#^' . $value . '$#', $record[$field]));
251+
$return = (isset($record[$field]) && preg_match('#^' . $value . '$#i', $record[$field]));
252252
break;
253253
case 'IN':
254254
$items = array();

0 commit comments

Comments
 (0)