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
fixed dialog specs and boolean input
Jonas Jabari670dbfa21822
diff --git a/app/forms/custom_fields/inputs/base/autocomplete/multi_value_input.rb b/app/forms/custom_fields/inputs/base/autocomplete/multi_value_input.rbindex 288fab4b56e..fa46850be4c 100644--- a/app/forms/custom_fields/inputs/base/autocomplete/multi_value_input.rb+++ b/app/forms/custom_fields/inputs/base/autocomplete/multi_value_input.rb@@ -47,8 +47,7 @@ class CustomFields::Inputs::Base::Autocomplete::MultiValueInput < ApplicationFordef autocomplete_options{multiple: true,- decorated: decorated?,- inputId: id+ decorated: decorated?}enddiff --git a/app/forms/custom_fields/inputs/base/autocomplete/single_value_input.rb b/app/forms/custom_fields/inputs/base/autocomplete/single_value_input.rbindex d14ccd4dac8..5472cecb9cc 100644--- a/app/forms/custom_fields/inputs/base/autocomplete/single_value_input.rb+++ b/app/forms/custom_fields/inputs/base/autocomplete/single_value_input.rb@@ -47,8 +47,7 @@ class CustomFields::Inputs::Base::Autocomplete::SingleValueInput < ApplicationFodef autocomplete_options{multiple: false,- decorated: decorated?,- inputId: id+ decorated: decorated?}enddiff --git a/app/forms/custom_fields/inputs/base/utils.rb b/app/forms/custom_fields/inputs/base/utils.rbindex 9b5ba930cdd..84c3ea806bd 100644--- a/app/forms/custom_fields/inputs/base/utils.rb+++ b/app/forms/custom_fields/inputs/base/utils.rb@@ -29,7 +29,6 @@module CustomFields::Inputs::Base::Utilsdef base_input_attributes{- id:,name:,label:,value:,@@ -39,10 +38,6 @@ module CustomFields::Inputs::Base::Utils}end- def id- "custom_field_#{@custom_field.id}"- end-def name@custom_field.id.to_senddiff --git a/app/forms/custom_fields/inputs/bool.rb b/app/forms/custom_fields/inputs/bool.rbindex c3e6b1e2237..69ee007427f 100644--- a/app/forms/custom_fields/inputs/bool.rb+++ b/app/forms/custom_fields/inputs/bool.rb@@ -35,7 +35,7 @@ class CustomFields::Inputs::Bool < CustomFields::Inputs::Base::Inputsuper.merge({value: "1",unchecked_value: "0",- checked: @custom_field_value&.typed_value == true || @custom_field.default_value == true+ checked: @custom_value&.typed_value == true})endenddiff --git a/spec/support/components/projects/project_custom_fields/edit_dialog.rb b/spec/support/components/projects/project_custom_fields/edit_dialog.rbindex 297a69f1966..a731896bd6a 100644--- a/spec/support/components/projects/project_custom_fields/edit_dialog.rb+++ b/spec/support/components/projects/project_custom_fields/edit_dialog.rb@@ -96,7 +96,9 @@ module Components###def input_containers- page.all('.op-project-custom-field-input-container')+ within '.Overlay-body > .FormControl-spacingWrapper' do+ page.all('.FormControl-spacingWrapper')+ endenddef within_custom_field_input_container(custom_field, &)