aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-04-28 13:11:53 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-04-28 13:11:53 +0100
commit5819c0e97dee4b9e9f41b863d0d5f02c0d024dd6 (patch)
treef234497b40c6b0a70bbc29ac26ec5208812bcf2a /views
parent13780d6bcd7552b5225172daa6fdc21d9839ef0c (diff)
Removed order from _events_form to avoid postgres error
Diffstat (limited to 'views')
-rw-r--r--views/_events_form.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/_events_form.haml b/views/_events_form.haml
index 8eb9112..10bfe11 100644
--- a/views/_events_form.haml
+++ b/views/_events_form.haml
@@ -5,7 +5,7 @@
%label{:for => "source"}
Source
%input{:type => "text", :id => "subject", :name => "alert[source]", :value => (params["alert"] ? params["alert"]["source"] : "") }
- - Mauve::History.all(:fields => [:type], :unique => true).collect{|h| h.type}.each do |history_type|
+ - Mauve::History.all(:fields => [:type], :order => nil, :unique => true).collect{|h| h.type}.each do |history_type|
%label{:for => "history_"+history_type}
= history_type.capitalize
%input{:type => "checkbox", :name => "history[type][]", :value => "#{history_type}", :checked => (params["history"] && params["history"]["type"].is_a?(Array) ? params["history"]["type"].include?(history_type) : false) }