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

Revert buggy true check

Mir Bhatiabacdbaa24ab6
diff --git a/modules/meeting/app/controllers/meetings_controller.rb b/modules/meeting/app/controllers/meetings_controller.rb
index a42b145fdd3..6041388a80d 100644
--- a/modules/meeting/app/controllers/meetings_controller.rb
+++ b/modules/meeting/app/controllers/meetings_controller.rb
@@ -316,7 +316,7 @@ class MeetingsController < ApplicationController
# Force defaults on participants
@converted_params[:participants_attributes] ||= {}
@converted_params[:participants_attributes].each { |p| p.reverse_merge! attended: false, invited: false }
- @converted_params[:send_notifications] = ActiveRecord::Type::Boolean.new.cast params[:send_notifications]
+ @converted_params[:send_notifications] = params[:send_notifications] == "1"
end
def meeting_params
diff --git a/modules/meeting/app/views/meetings/_form.html.erb b/modules/meeting/app/views/meetings/_form.html.erb
index 80d13fe1f91..65f30a909a9 100644
--- a/modules/meeting/app/views/meetings/_form.html.erb
+++ b/modules/meeting/app/views/meetings/_form.html.erb
@@ -192,8 +192,8 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: 'meetings/participants_section' %>
-<% if @meeting.new_record? || copy_from.present? %>
- <div class="form--field">
+ <% if @meeting.new_record? || copy_from.present? %>
+ <div class="form--field">
<%= styled_label_tag 'send_notfications', t(:"meeting.email.send_emails") %>
<div class="form--field-container">
<%= styled_check_box_tag 'send_notifications',