Skip to content

Commit

Permalink
Fix denormalization of published state for data object folders
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-moser committed May 28, 2024
1 parent f346c20 commit 7ebe9cd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ public function denormalize(
$searchResultItem = new DataObjectSearchResultItem();
}

$published = SystemField::TYPE->getData($data) === 'folder' || SystemField::PUBLISHED->getData($data);

return $searchResultItem
->setId(SystemField::ID->getData($data))
->setClassName(SystemField::CLASS_NAME->getData($data) ?? '')
->setParentId(SystemField::PARENT_ID->getData($data))
->setType(SystemField::TYPE->getData($data))
->setPublished(SystemField::PUBLISHED->getData($data))
->setPublished($published)
->setKey(SystemField::KEY->getData($data))
->setPath(SystemField::PATH->getData($data))
->setFullPath(SystemField::FULL_PATH->getData($data))
Expand Down

0 comments on commit 7ebe9cd

Please sign in to comment.