File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -675,9 +675,8 @@ public function addSelection()
675
675
{
676
676
$ this ->selection = $ this ->table ->addColumn (null , 'CheckBox ' );
677
677
678
- // Move element to the beginning
679
- $ k = array_search ($ this ->selection , $ this ->table ->columns );
680
- $ this ->table ->columns = [$ k => $ this ->table ->columns [$ k ]] + $ this ->table ->columns ;
678
+ // Move last column to the beginning in table column array.
679
+ array_unshift ($ this ->table ->columns , array_pop ($ this ->table ->columns ));
681
680
682
681
return $ this ->selection ;
683
682
}
@@ -691,6 +690,7 @@ public function addSelection()
691
690
public function addDragHandler ()
692
691
{
693
692
$ handler = $ this ->table ->addColumn (null , 'DragHandler ' );
693
+
694
694
// Move last column to the beginning in table column array.
695
695
array_unshift ($ this ->table ->columns , array_pop ($ this ->table ->columns ));
696
696
You can’t perform that action at this time.
0 commit comments