Widget: Do not open seating plan for events which cannot be purchased

This commit is contained in:
Raphael Michel
2021-05-26 10:51:00 +02:00
parent 91e3b04b0a
commit 9e6fa1e37d

View File

@@ -1417,7 +1417,7 @@ var shared_root_methods = {
root.loading--;
root.trigger_load_callback();
}
if (root.parent_stack.length > 0 && root.has_seating_plan && root.categories.length === 0 && !root.frame_dismissed && root.useIframe) {
if (root.parent_stack.length > 0 && root.has_seating_plan && root.categories.length === 0 && !root.frame_dismissed && root.useIframe && !root.error) {
// If we're on desktop and someone selects a seating-only event in a calendar, let's open it right away,
// but only if the person didn't close it before.
root.startseating()