From d25f144f01b55c792d2ddfdf354513abe3b083bb Mon Sep 17 00:00:00 2001 From: markus-moser Date: Mon, 16 Sep 2019 12:26:44 +0200 Subject: [PATCH] Batch update field definition fix when definition changed since last 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. --- src/Controller/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/AdminController.php b/src/Controller/AdminController.php index f6baa3b..c4bf00e 100644 --- a/src/Controller/AdminController.php +++ b/src/Controller/AdminController.php @@ -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) {