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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Use double-quotes
Christophe Bliard4f674c622ffc
diff --git a/app/models/permitted_params.rb b/app/models/permitted_params.rbindex 6ed1a45ae84..c768af525dd 100644--- a/app/models/permitted_params.rb+++ b/app/models/permitted_params.rb@@ -26,7 +26,7 @@# See COPYRIGHT and LICENSE files for more details.#++-require 'permitted_params/allowed_settings'+require "permitted_params/allowed_settings"class PermittedParams# This class intends to provide a method for all params hashes coming from the@@ -162,7 +162,7 @@ class PermittedParamsp = params.require(:query).permit(*self.class.permitted_attributes[:query])p[:sort_criteria] = params.require(:query)- .permit(sort_criteria: { '0' => [], '1' => [], '2' => [] })+ .permit(sort_criteria: { "0" => [], "1" => [], "2" => [] })p[:sort_criteria].delete :sort_criteriapend@@ -340,7 +340,7 @@ class PermittedParamsenddef attachments- params.permit(attachments: %i[file description id])['attachments']+ params.permit(attachments: %i[file description id])["attachments"]enddef enumerations@@ -407,7 +407,7 @@ class PermittedParams# Reject blank values from include_hidden select fieldsvalues.each { |_, v| v.compact_blank! if v.is_a?(Array) }- values.empty? ? {} : { 'custom_field_values' => values.permit! }+ values.empty? ? {} : { "custom_field_values" => values.permit! }enddef permitted_attributes(key, additions = {})@@ -529,7 +529,7 @@ class PermittedParams:subject,Proc.new do |args|# avoid costly allowed_in_project? if the param is not there at all- if args[:params]['work_package']&.has_key?('watcher_user_ids') &&+ if args[:params]["work_package"]&.has_key?("watcher_user_ids") &&args[:current_user].allowed_in_project?(:add_work_package_watchers, args[:project]){ watcher_user_ids: [] }