Completed
Pull Request — master (#274)
by
unknown
02:28
created
src/yajra/Datatables/Engines/QueryBuilderEngine.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -256,7 +256,9 @@
 block discarded – undo
256 256
                  * which causes a query exception
257 257
                  * The temporary fix is modify `*` column to `id` column 
258 258
                  */
259
-                if ($column === '*') $column = 'id';
259
+                if ($column === '*') {
260
+                    $column = 'id';
261
+                }
260 262
                 $this->getQueryBuilder()->orderBy($column, $orderable['direction']);
261 263
             }
262 264
         }
Please login to merge, or discard this patch.