From cf588edbeab9209bfa751a18af6a1f1321fc66a7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 29 Nov 2018 15:41:34 +0000 Subject: Merged r17643 to 3.3-stable (#20788). git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@17651 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/views/builders/structure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/redmine/views/builders/structure.rb') diff --git a/lib/redmine/views/builders/structure.rb b/lib/redmine/views/builders/structure.rb index 03f73c649..420190fc9 100644 --- a/lib/redmine/views/builders/structure.rb +++ b/lib/redmine/views/builders/structure.rb @@ -48,7 +48,7 @@ module Redmine end def method_missing(sym, *args, &block) - if args.any? + if args.count > 0 if args.first.is_a?(Hash) if @struct.last.is_a?(Array) @struct.last << args.first unless block -- cgit v1.2.3