summaryrefslogtreecommitdiffstats
path: root/lib/redmine/views/builders/structure.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-11-29 15:41:34 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-11-29 15:41:34 +0000
commitcf588edbeab9209bfa751a18af6a1f1321fc66a7 (patch)
treeff070b1075e36993147ac156a408d0318ede8ad7 /lib/redmine/views/builders/structure.rb
parent8b4f325214756002ec362d6872a9ded60743275d (diff)
downloadredmine-cf588edbeab9209bfa751a18af6a1f1321fc66a7.tar.gz
redmine-cf588edbeab9209bfa751a18af6a1f1321fc66a7.zip
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
Diffstat (limited to 'lib/redmine/views/builders/structure.rb')
-rw-r--r--lib/redmine/views/builders/structure.rb2
1 files changed, 1 insertions, 1 deletions
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