Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

[QUAD] Bug: Fix Tray Publisher asset entity type value retrieval #6345

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions openpype/hosts/traypublisher/api/editorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,12 @@ def _get_parents_from_selected_asset(
visual_hierarchy.append(visual_parent)
current_doc = visual_parent

# add current selection context hierarchy
# Add current selection context hierarchy.
# Since the entity dict has changed through OP versions,
# an adaptation has to be made for it to work for Project types
return [
{
"entity_type": entity["data"]["entityType"],
"entity_type": entity["data"].get("entityType", entity.get("entityType", "Project")),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (101 > 79 characters)

"entity_name": entity["name"]
}
for entity in reversed(visual_hierarchy)
Expand Down
Loading