Commit c5e74175 by Van Hau Le

Update activity name

parent fd780ea7
Pipeline #76 failed with stages
in 0 seconds
...@@ -33,7 +33,7 @@ class TimeEntryActivity < Enumeration ...@@ -33,7 +33,7 @@ class TimeEntryActivity < Enumeration
].freeze ].freeze
SUPPORT_ACTIVITIES = [ SUPPORT_ACTIVITIES = [
"Communication", "Project Management", "Leave Off", "Idle", "Company Meeting", "Support", "Others" "Communication", "Project Management", "Annual Leave Off", "Idle", "Company Meeting", "Support", "Others", "Public holiday"
].freeze ].freeze
def option_name def option_name
...@@ -53,7 +53,7 @@ class TimeEntryActivity < Enumeration ...@@ -53,7 +53,7 @@ class TimeEntryActivity < Enumeration
end end
def is_activity_for_task? def is_activity_for_task?
TASK_BUGS_ACTIVITIES.include? name TASK_BUGS_ACTIVITIES.include? name&.strip
end end
def is_activity_for_support? def is_activity_for_support?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment