Skip to content

Commit 5e47936

Browse files
committed
fix column key set
1 parent 4f3d3e3 commit 5e47936

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/Library/CrudPanel/CrudColumn.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ public function key(string $key)
8181

8282
$columns = $this->crud()->columns();
8383
$searchKey = $this->attributes['key'];
84+
$column = $this->attributes;
8485

8586
if (isset($columns[$searchKey])) {
8687
unset($columns[$searchKey]);
8788
$column['key'] = $key;
8889
}
90+
8991
$this->attributes = $column;
9092
$this->setOperationSetting('columns', array_merge($columns, [$key => $column]));
9193

0 commit comments

Comments
 (0)