Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
d65bf460
Commit
d65bf460
authored
Jun 10, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix milestone reopen
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
c4b02642
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/services/milestones/reopen_service.rb
app/services/milestones/reopen_service.rb
+1
-1
app/services/milestones/update_service.rb
app/services/milestones/update_service.rb
+2
-2
No files found.
app/services/milestones/reopen_service.rb
View file @
d65bf460
module
Milestones
class
ReopenService
<
Milestones
::
BaseService
def
execute
(
milestone
)
if
milestone
.
reopen
if
milestone
.
activate
event_service
.
reopen_milestone
(
milestone
,
current_user
)
end
...
...
app/services/milestones/update_service.rb
View file @
d65bf460
module
Milestones
class
UpdateService
<
Milestones
::
BaseService
def
execute
(
milestone
)
state
=
params
.
delete
(
'state_event'
)
state
=
params
.
delete
(
'state_event'
)
||
params
.
delete
(
:state_event
)
case
state
when
'
reopen
'
when
'
activate
'
Milestones
::
ReopenService
.
new
(
project
,
current_user
,
{}).
execute
(
milestone
)
when
'close'
Milestones
::
CloseService
.
new
(
project
,
current_user
,
{}).
execute
(
milestone
)
...
...
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