Skip to content

Commit

Permalink
Batch update field definition fix when definition changed since last …
Browse files Browse the repository at this point in the history
…save (#60)

This is a follow up task to #41. It does not work anymore, the column needs to be a reference as otherwise it's value is not changed.
  • Loading branch information
markus-moser authored and fashxp committed Sep 16, 2019
1 parent 376cf3d commit d25f144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public function loadSearchAction(Request $request) {
if(!empty($config["gridConfig"]["columns"])) {
$helperColumns = [];

foreach ($config["gridConfig"]["columns"] as $column) {
foreach ($config["gridConfig"]["columns"] as &$column) {
if(!$column["isOperator"]) {
$fieldDefinition = $classDefinition->getFieldDefinition($column['key']);
if($fieldDefinition) {
Expand Down

0 comments on commit d25f144

Please sign in to comment.