]> source.dussan.org Git - redmine.git/commitdiff
Issue#children is never nil (#14015).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 May 2013 08:49:54 +0000 (08:49 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 May 2013 08:49:54 +0000 (08:49 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11833 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 8dfa2b53a4108705929ad04db14b0671a78af7ad..1963c0293b96e0515a31883b58b087fccc523148 100644 (file)
@@ -902,7 +902,7 @@ class Issue < ActiveRecord::Base
 
       # Add children to queue, but only if they are not already in it and
       # the children of the current node need to be processed.
-      if current_issue.children && (current_issue_status == ePROCESS_CHILDREN_ONLY || current_issue_status == ePROCESS_ALL)
+      if (current_issue_status == ePROCESS_CHILDREN_ONLY || current_issue_status == ePROCESS_ALL)
         current_issue.children.each do |child|
           next if except.include?(child)