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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
ac7b6688
Commit
ac7b6688
authored
Mar 05, 2018
by
haseeb
Committed by
oswaldoferreira
Mar 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed the way of nullifying colums
parent
6496b29e
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 @
ac7b6688
...
...
@@ -86,6 +86,11 @@ class Issue < ActiveRecord::Base
before_transition
any
=>
:closed
do
|
issue
|
issue
.
closed_at
=
Time
.
zone
.
now
end
before_transition
closed: :opened
do
|
issue
|
issue
.
closed_at
=
nil
issue
.
closed_by
=
nil
end
end
class
<<
self
...
...
app/services/issues/reopen_service.rb
View file @
ac7b6688
...
...
@@ -10,7 +10,6 @@ module Issues
execute_hooks
(
issue
,
'reopen'
)
invalidate_cache_counts
(
issue
,
users:
issue
.
assignees
)
issue
.
update_project_counter_caches
issue
.
update
(
closed_by:
nil
,
closed_at:
nil
)
end
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