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
Fix error key for presence
Oliver Günthere3b44b561410
diff --git a/app/contracts/user_preferences/base_contract.rb b/app/contracts/user_preferences/base_contract.rbindex 53fea43c94c..ebc64433b9a 100644--- a/app/contracts/user_preferences/base_contract.rb+++ b/app/contracts/user_preferences/base_contract.rb@@ -127,7 +127,7 @@ module UserPreferenceslast = model.pause_reminders[:last_day]if first.blank? || last.blank?- errors.add :pause_reminders, :presence+ errors.add :pause_reminders, :blankreturnenddiff --git a/spec/contracts/user_preferences/update_contract_spec.rb b/spec/contracts/user_preferences/update_contract_spec.rbindex d70b80de635..38b968679d1 100644--- a/spec/contracts/user_preferences/update_contract_spec.rb+++ b/spec/contracts/user_preferences/update_contract_spec.rb@@ -338,7 +338,7 @@ describe UserPreferences::UpdateContract do}end- it_behaves_like 'contract is invalid', pause_reminders: :presence+ it_behaves_like 'contract is invalid', pause_reminders: :blankendcontext 'with enabled true but invalid dates' do@@ -362,7 +362,7 @@ describe UserPreferences::UpdateContract do}end- it_behaves_like 'contract is invalid', pause_reminders: :presence+ it_behaves_like 'contract is invalid', pause_reminders: :blankendcontext 'with enabled true but only last day' do@@ -372,7 +372,7 @@ describe UserPreferences::UpdateContract do}end- it_behaves_like 'contract is invalid', pause_reminders: :presence+ it_behaves_like 'contract is invalid', pause_reminders: :blankendendend