@@ -688,7 +688,7 class Issue < ActiveRecord::Base | |||
|
688 | 688 | |
|
689 | 689 | # Return true if the issue is closed, otherwise false |
|
690 | 690 | def closed? |
|
691 |
s |
|
|
691 | status.present? && status.is_closed? | |
|
692 | 692 | end |
|
693 | 693 | |
|
694 | 694 | # Return true if the issue is being reopened |
@@ -706,7 +706,7 class Issue < ActiveRecord::Base | |||
|
706 | 706 | # Return true if the issue is being closed |
|
707 | 707 | def closing? |
|
708 | 708 | if !new_record? && status_id_changed? |
|
709 |
if |
|
|
709 | if closed? && status_was && !status_was.is_closed? | |
|
710 | 710 | return true |
|
711 | 711 | end |
|
712 | 712 | end |
General Comments 0
You need to be logged in to leave comments.
Login now