ref: refs/heads/master
commit b59359d52a76450846626561163f05c032cb2113
Author: Martin Vidner
Date: Fri Sep 11 09:55:40 2009 +0200
Fixed HTML rendering.
ARGH, having it on a single line means that it LOOKS covered by
tests when ifact it is NOT.
IMO we should remove the HTML from REST.
---
.../controllers/network/interfaces_controller.rb | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/plugins/network/app/controllers/network/interfaces_controller.rb b/plugins/network/app/controllers/network/interfaces_controller.rb
index a8f491a..bc71feb 100644
--- a/plugins/network/app/controllers/network/interfaces_controller.rb
+++ b/plugins/network/app/controllers/network/interfaces_controller.rb
@@ -29,7 +29,9 @@ class Network::InterfacesController < ApplicationController
@ifce = Interface.find(params[:id])
respond_to do |format|
- format.html { render :xml => @difce.to_xml( :root => "interfaces", :dasherize => false ) }
+ format.html do
+ render :xml => difce.to_xml( :root => "interfaces", :dasherize => false )
+ end
format.xml { render :xml => @ifce.to_xml( :root => "interfaces", :dasherize => false ) }
format.json { render :json => @ifce.to_json }
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org