Skip to content

Commit

Permalink
[Bug]: Save object with table in objectbrick #15955 (#244)
Browse files Browse the repository at this point in the history
* [Task] Integrate POEditor Translation Workflow - resolves #197

* [Bug]: Save object with table in objectbrick #15955

* Remove unintended commit

---------

Co-authored-by: Divesh Pahuja <[email protected]>
Co-authored-by: aryaantony92 <[email protected]>
  • Loading branch information
3 people authored Sep 20, 2023
1 parent f8d771a commit 1fc2b7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Filter/FieldDefinitionAdapter/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ protected function doGetIndexDataValue($object, $ignoreInheritance = false)
if ($this->isColumnConfigActivated()) {
// When saving an object the array doesnt have named keys, so first get data for resource
// and then get the data from resource. This way we have named keys in the data array
if (!$object instanceof Concrete) {
$object = null;
}

$value = $this->fieldDefinition->getDataFromResource($this->fieldDefinition->getDataForResource($value, $object));
}

Expand Down

0 comments on commit 1fc2b7a

Please sign in to comment.