Skip to content

Commit 66e4847

Browse files
another bug fix.. search not working on codeigniter 4.1.2 (join, subquery)
1 parent fee7059 commit 66e4847

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/DataTableColumnDefs.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,10 @@ public function initFromBuilder($builder)
273273

274274
$alias = ! empty($selectParsed['alias']) ? end($selectParsed['alias']['no_quotes']['parts']) : end($selectParsed['no_quotes']['parts']);
275275

276-
$key = $selectParsed['no_quotes']['parts'][0];
276+
$key = count($selectParsed['no_quotes']['parts']) == 2 ?
277+
$selectParsed['no_quotes']['parts'][0].'.'.$selectParsed['no_quotes']['parts'][1] :
278+
$selectParsed['no_quotes']['parts'][0];
279+
277280
$alias = $alias;
278281

279282
}

0 commit comments

Comments
 (0)