Skip to content

Commit

Permalink
switched search column to ignore case
Browse files Browse the repository at this point in the history
  • Loading branch information
emagombe committed Nov 11, 2020
1 parent 692b4be commit 28abcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private function search_column($result) {
foreach($params["columns"] as $column) {
if($column["searchable"] == "true" && isset($row[$column["data"]]) && $row[$column["data"]]) {
if($column["search"]["value"] != "") {
if(strpos($row[$column["data"]], $column["search"]["value"]) === 0) {
if(strpos(strtolower($row[$column["data"]]), strtolower($column["search"]["value"])) === 0) {
$found = true;
} else {
$found = false;
Expand Down

0 comments on commit 28abcce

Please sign in to comment.