From: Toshi MARUYAMA Date: Sun, 13 Jul 2014 00:04:23 +0000 (+0000) Subject: remove unneeded statement from Issue#parent_issue_id= X-Git-Tag: 2.6.0~97 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d29799712f87de6032877cfdbc720cd8852cdacd;p=redmine.git remove unneeded statement from Issue#parent_issue_id= git-svn-id: http://svn.redmine.org/redmine/trunk@13303 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/issue.rb b/app/models/issue.rb index 3a3373ffd..a98305fef 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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