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

Merge branch 'feature/42388-new-automatic-scheduling-mode' into feature/47519-single-date-mode-for-work-package-date-pickers

Christophe Bliarda9176a6b43ab
diff --cc app/components/work_packages/date_picker/dialog_content_component.html.erb
index 357cd2866c9,cca99194363..28e6d8bb459
--- a/app/components/work_packages/date_picker/dialog_content_component.html.erb
+++ b/app/components/work_packages/date_picker/dialog_content_component.html.erb
@@@ -22,7 -20,7 +22,7 @@@
) do |component|
component.with_tab(selected: true, id: "wp-datepicker-dialog--content-tab--dates") do |tab|
tab.with_text { I18n.t("work_packages.datepicker_modal.tabs.dates") }
- tab.with_panel(m: 3) do
- tab.with_panel do
++ tab.with_panel(m: 3) do
render(
WorkPackages::DatePicker::FormContentComponent.new(
form_id: DIALOG_FORM_ID,
diff --cc app/components/work_packages/date_picker/dialog_content_component.rb
index 44195840a8e,761465f31ea..3d7d309282f
--- a/app/components/work_packages/date_picker/dialog_content_component.rb
+++ b/app/components/work_packages/date_picker/dialog_content_component.rb
@@@ -39,9 -39,9 +39,9 @@@ module WorkPackage
# Used for the three tabs for predecessors, successors and children in the date picker modal.
Tab = Data.define(:key, :relation_group)
- attr_accessor :work_package, :schedule_manually, :focused_field, :touched_field_map, :date_mode
- attr_reader :work_package, :schedule_manually, :focused_field, :touched_field_map
++ attr_reader :work_package, :schedule_manually, :focused_field, :touched_field_map, :date_mode
- def initialize(work_package:, schedule_manually: true, focused_field: :start_date, touched_field_map: {})
+ def initialize(work_package:, schedule_manually: true, focused_field: :start_date, touched_field_map: {}, date_mode: nil)
super
@work_package = work_package