Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#62081] "+ Add outcome" not removed right away after outcome has been added

Mir Bhatia33ce081ad532
diff --git a/modules/meeting/app/controllers/meeting_outcomes_controller.rb b/modules/meeting/app/controllers/meeting_outcomes_controller.rb
index 5c52117ccd9..2e7e5245349 100644
--- a/modules/meeting/app/controllers/meeting_outcomes_controller.rb
+++ b/modules/meeting/app/controllers/meeting_outcomes_controller.rb
@@ -70,12 +70,12 @@ class MeetingOutcomesController < ApplicationController
if call.success?
render_base_outcome_component_via_turbo_stream(meeting: @meeting, meeting_agenda_item: @meeting_agenda_item,
meeting_outcome: @meeting_outcome, edit: false)
- update_header_component_via_turbo_stream
else
render_base_error_in_flash_message_via_turbo_stream(call.errors)
- update_all_via_turbo_stream
end
+ update_all_via_turbo_stream
+
respond_with_turbo_streams
end
@@ -112,7 +112,6 @@ class MeetingOutcomesController < ApplicationController
if call.success?
render_base_outcome_component_via_turbo_stream(meeting: @meeting, meeting_agenda_item: @meeting_agenda_item,
meeting_outcome: call.result, edit: false)
- update_header_component_via_turbo_stream
else
render_base_error_in_flash_message_via_turbo_stream(call.errors)
end