From 76a3298306ef209c7b5d6c3ea307cecdb86d0123 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 12 May 2013 08:49:54 +0000 Subject: [PATCH] Issue#children is never nil (#14015). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11833 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index 8dfa2b53a..1963c0293 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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)