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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
f0859cc9
Commit
f0859cc9
authored
Mar 05, 2018
by
haseeb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed the way of nullifying colums
parent
a73c9a63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/models/issue.rb
app/models/issue.rb
+5
-0
app/services/issues/reopen_service.rb
app/services/issues/reopen_service.rb
+0
-1
No files found.
app/models/issue.rb
View file @
f0859cc9
...
@@ -77,6 +77,11 @@ class Issue < ActiveRecord::Base
...
@@ -77,6 +77,11 @@ class Issue < ActiveRecord::Base
before_transition
any
=>
:closed
do
|
issue
|
before_transition
any
=>
:closed
do
|
issue
|
issue
.
closed_at
=
Time
.
zone
.
now
issue
.
closed_at
=
Time
.
zone
.
now
end
end
before_transition
closed: :opened
do
|
issue
|
issue
.
closed_at
=
nil
issue
.
closed_by
=
nil
end
end
end
class
<<
self
class
<<
self
...
...
app/services/issues/reopen_service.rb
View file @
f0859cc9
...
@@ -10,7 +10,6 @@ module Issues
...
@@ -10,7 +10,6 @@ module Issues
execute_hooks
(
issue
,
'reopen'
)
execute_hooks
(
issue
,
'reopen'
)
invalidate_cache_counts
(
issue
,
users:
issue
.
assignees
)
invalidate_cache_counts
(
issue
,
users:
issue
.
assignees
)
issue
.
update_project_counter_caches
issue
.
update_project_counter_caches
issue
.
update
(
closed_by:
nil
,
closed_at:
nil
)
end
end
issue
issue
...
...
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