Skip to content
Snippets Groups Projects
Commit e5013a80 authored by Erik Seifert's avatar Erik Seifert
Browse files

Fix: Only override tmp store key

parent e506d973
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,9 @@ class UserDashboardSectionStorage extends DashboardSectionStorage implements Tem
* @var \Drupal\dashboards\Entity\Dashboard $entity
*/
if ($id && ($entity = $this->entityTypeManager->getStorage('dashboard')->load($id))) {
$entity->loadOverrides();
if ($entity->isOverriden()) {
$entity->loadOverrides();
}
$contexts[Dashboard::CONTEXT_TYPE] = EntityContext::fromEntity($entity);
}
return $contexts;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment