Skip to content

Commit

Permalink
Fix guest-submitted panel apps
Browse files Browse the repository at this point in the history
If a guest submitted a panel with any other panelists listed, a variable collision removed the 'submitter' panelist object we create to tie the panel to the guest group. Fixes https://magfest.atlassian.net/browse/MAGDEV-1332.
  • Loading branch information
kitsuta committed Nov 1, 2024
1 parent c53808b commit ed91de6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uber/site_sections/panels.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def process_panel_app(session, app, panelist, other_panelists_compiled, **params

message = check(app) or check_other_panelists(other_panelists_compiled) or ''
if not message:
for panelist in other_panelists_compiled:
panelist.app_id = app.id
for other_panelist in other_panelists_compiled:
other_panelist.app_id = app.id
session.add_all([app, panelist] + other_panelists_compiled)

return message

0 comments on commit ed91de6

Please sign in to comment.