Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge template and planning subject when creating item #2005

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

petrjasek
Copy link
Member

SDBELGA-821

@petrjasek petrjasek added this to the 2.8 milestone Jun 26, 2024
)
single_value_vocabularies = set([v["_id"] for v in vocabularies])
subject = item.setdefault("subject", [])
if planning.get("subject"):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be good to place this at the top of this function, so it doesn't needlessly lookup vocabs, and return if the Planning item doesn't have a subject

@petrjasek petrjasek merged commit a8262c5 into superdesk:develop Jun 28, 2024
12 checks passed
@petrjasek petrjasek deleted the fix-create-assignment branch June 28, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants