#2036: Change empty XML responses to have the correct base element

This commit is contained in:
Jyri-Petteri Paloposki 2019-05-03 11:47:05 +03:00
parent addc3b5513
commit b9a80a385e
6 changed files with 13 additions and 13 deletions

View file

@ -20,7 +20,7 @@ class CalendarController < ApplicationController
render :action => 'show', :layout => false, :content_type => Mime[:ics]
}
format.xml {
render :xml => @due_all.to_xml( *todo_xml_params )
render :xml => @due_all.to_xml( *[todo_xml_params[0].merge({:root => :todos})] )
}
end
end