Skip to content

Commit 140a6b6

Browse files
committed
fixed: do not try to add menu item on non saved entities
1 parent 0a014d4 commit 140a6b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/ColdTrick/DatarootBrowser/Menus/EntityMenu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static function register(\Elgg\Event $event): ?MenuItems {
2525
}
2626

2727
$entity = $event->getEntityParam();
28-
if (!$entity instanceof \ElggEntity) {
28+
if (!$entity instanceof \ElggEntity || empty($entity->guid)) {
2929
return null;
3030
}
3131

0 commit comments

Comments
 (0)