From: Jan Provaznik <[email protected]>

https://bugzilla.redhat.com/show_bug.cgi?id=641439

This patch actually fixes ugly error message when validation fails:
"template" is showed instead of "tpl" in header
---
 src/app/views/templates/new.haml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/app/views/templates/new.haml b/src/app/views/templates/new.haml
index 7bd62af..2de44cb 100644
--- a/src/app/views/templates/new.haml
+++ b/src/app/views/templates/new.haml
@@ -77,7 +77,7 @@
   - form_for @tpl, :url => { :action => "dispatch" } do
     <input type="hidden" id="id" name="id" value="#...@id}" />
     = hidden_field :tpl, :id
-    = error_messages_for :tpl
+    = error_messages_for :tpl, :object_name => 'template'
     = render :partial => 'basics'
 
     %h3.disabled.gap Local Content to Bundle
-- 
1.7.2.3

_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to