summaryrefslogtreecommitdiffstats
path: root/lib/redmine/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-03 13:52:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-03 13:52:07 +0000
commit735a83c596156e32f8cc686207eecddc029d7629 (patch)
tree3247605f58fde81458b096a4fa68b2837952031a /lib/redmine/views
parenteaf6bb1e9bc1ac3b5309f51ea9f76e6f95ba5813 (diff)
downloadredmine-735a83c596156e32f8cc686207eecddc029d7629.tar.gz
redmine-735a83c596156e32f8cc686207eecddc029d7629.zip
Converts IssuesController to use the new API template system and makes xml/json responses consistent (#6136).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4458 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/views')
-rw-r--r--lib/redmine/views/builders/structure.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/redmine/views/builders/structure.rb b/lib/redmine/views/builders/structure.rb
index b1add8be8..c168bd73a 100644
--- a/lib/redmine/views/builders/structure.rb
+++ b/lib/redmine/views/builders/structure.rb
@@ -37,6 +37,8 @@ module Redmine
if args.first.is_a?(Hash)
if @struct.last.is_a?(Array)
@struct.last << args.first
+ else
+ @struct.last[sym] = args.first
end
else
if @struct.last.is_a?(Array)