Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
redmine_v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VeNtura
redmine_v2
Commits
13c83f5c
Commit
13c83f5c
authored
Sep 30, 2019
by
Van Hau Le
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug
parent
3aa0f8d1
Pipeline
#74
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
app/helpers/timelog_helper.rb
+1
-1
app/models/time_entry_activity.rb
+4
-0
No files found.
app/helpers/timelog_helper.rb
View file @
13c83f5c
...
...
@@ -47,7 +47,7 @@ module TimelogHelper
when
'User story'
[]
when
'Support'
TimeEntryActivity
::
SUPPORT_ACTIVITIES
activities
.
collect
{
|
a
|
[
a
.
name
,
a
.
id
]
if
a
.
is_activity_for_support?
}
else
activities
.
map
{
|
a
|
[
a
.
name
,
a
.
id
]
}
end
...
...
app/models/time_entry_activity.rb
View file @
13c83f5c
...
...
@@ -55,4 +55,8 @@ class TimeEntryActivity < Enumeration
def
is_activity_for_task?
TASK_BUGS_ACTIVITIES
.
include?
name
end
def
is_activity_for_support?
SUPPORT_ACTIVITIES
.
include?
name
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment