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

Always render the unparsed value in order to avoid a flickering input value.

Dombi Attila39ffef6977c3
diff --git a/app/forms/projects/life_cycles/form.rb b/app/forms/projects/life_cycles/form.rb
index 7faa6095abe..680f09eb8c4 100644
--- a/app/forms/projects/life_cycles/form.rb
+++ b/app/forms/projects/life_cycles/form.rb
@@ -56,7 +56,7 @@ module Projects::LifeCycles
def start_date_input(form)
data = datepicker_attributes[:data]
- value = model.start_date || model.default_start_date || model.start_date_before_type_cast
+ value = model.default_start_date || model.start_date_before_type_cast
disabled = model.default_start_date.present?
caption = disabled ? I18n.t("activerecord.attributes.project/phase.start_date_caption") : nil
input_attributes = {
@@ -75,7 +75,7 @@ module Projects::LifeCycles
def finish_date_input(form)
data = datepicker_attributes[:data]
- value = model.finish_date || model.finish_date_before_type_cast
+ value = model.finish_date_before_type_cast
input_attributes = {
name: :finish_date,
label: attribute_name(:finish_date),