Skip to content

Commit

Permalink
Merge pull request #19 from iYogesharma/master
Browse files Browse the repository at this point in the history
Laravel 11.x
  • Loading branch information
iYogesharma authored May 22, 2024
2 parents f64086b + 3662e0b commit 6923c6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"datatable",
"laravel"
],
"version": "3.6",
"version": "3.6.1",
"license": "MIT",
"authors": [{
"name": "Yogesh Sharma",
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractDatatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected function setWhereColumns()
{
foreach ($this->query->columns as $c) {
if(gettype($c) === 'object'){
$c = $c->getValue();
$c = $c->getValue($this->query->grammar);
if (strpos($c, ' as ')) {
$column = explode(' as ', $c);
if (in_array(trim($column[1]), $this->searchColumns, true)) {
Expand Down

0 comments on commit 6923c6d

Please sign in to comment.