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
Add more explanation details to the WorkingDays#working_week_days method
Dombi Attila515293c46a0b
diff --git a/app/services/work_packages/shared/working_days.rb b/app/services/work_packages/shared/working_days.rbindex 782c2405f51..5216603758d 100644--- a/app/services/work_packages/shared/working_days.rb+++ b/app/services/work_packages/shared/working_days.rb@@ -105,9 +105,9 @@ module WorkPackagesdef working_week_daysreturn @working_week_days if defined?(@working_week_days)- # WeekDay day of the week is stored as ISO, meaning Sunday is 7.- # Ruby Date#wday value for Sunday is 0.- # To make both work, an array of 8 elements is created+ # WeekDay day of the week is stored as ISO, meaning Monday is 1 and Sunday is 7.+ # Ruby Date#wday value for Sunday is 0 and it goes until 6 Saturday.+ # To accomodate both versions 0-6, 1-7, an array of 8 elements is created# where array[0] = array[7] = value for Sunday## Because the database table for WeekDay could be empty or incomplete