Skip to content

Commit

Permalink
fix: tablePrefix problem (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
bleuren authored Jun 16, 2022
1 parent 5fbaeb4 commit c2931fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Livewire/LivewireDatatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public function resolveAdditionalSelects($column)
return $selects->count() > 1
? new Expression("CONCAT_WS('" . static::SEPARATOR . "' ," .
collect($selects)->map(function ($select) {
return "COALESCE($select, '')";
return 'COALESCE(' . $this->tablePrefix . $select . ', \'\')';
})->join(', ') . ')')
: $selects->first();
}
Expand Down

0 comments on commit c2931fb

Please sign in to comment.