]> projects.mako.cc - selectricity-live/blobdiff - app/controllers/election_controller.rb
mergec minor changes from live
[selectricity-live] / app / controllers / election_controller.rb
index be2fb3d2c9efd26c5deb6e8ee150249b5e509ac2..5c13a8128cdfa6781240bc6b9937d0e533482afd 100644 (file)
@@ -45,6 +45,7 @@ class ElectionController < ApplicationController
     @election.user = session[:user]
     @election.anonymous = 1
     @election.startdate = Time.now
+    @election.type = 'Election'
     
     holder = create_theme_hash
     unless holder.values.all? {|v| v.has_value?("")}
@@ -233,6 +234,7 @@ class ElectionController < ApplicationController
     if params.has_key?( :raw_voter_list )
       process_incoming_voters( params[:raw_voter_list] )
     end
+    @edit = true
     @raw_voter_list = RawVoterList.new
   end
   

Benjamin Mako Hill || Want to submit a patch?