]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded statement from Issue#parent_issue_id=
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 13 Jul 2014 00:04:23 +0000 (00:04 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 13 Jul 2014 00:04:23 +0000 (00:04 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13303 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 3a3373ffd0ceff62af09e4bb188c656547a31106..a98305fef290e6b04f35bd9290d8e09042b5d853 100644 (file)
@@ -1121,7 +1121,6 @@ class Issue < ActiveRecord::Base
   def parent_issue_id=(arg)
     s = arg.to_s.strip.presence
     if s && (m = s.match(%r{\A#?(\d+)\z})) && (@parent_issue = Issue.find_by_id(m[1]))
-      @parent_issue.id
       @invalid_parent_issue_id = nil
     elsif s.blank?
       @parent_issue = nil