From: Date: Thu, 29 May 2008 20:34:02 +0000 (-0400) Subject: Can upload images on the edit_general_information page as well, but has no checks... X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/548d6f3789d5b07aa259444acc816a4e98452f2b?ds=inline;hp=50d95cd1569a8452323d565cf2f34fc63672cff7 Can upload images on the edit_general_information page as well, but has no checks in palce to make sure there's only one kind of each item. --- diff --git a/app/controllers/election_controller.rb b/app/controllers/election_controller.rb index 6cd12bc..4e59ca8 100644 --- a/app/controllers/election_controller.rb +++ b/app/controllers/election_controller.rb @@ -69,7 +69,7 @@ class ElectionController < ApplicationController def update_general_information @election = Election.find(params[:id]) - unless params[:top_bar][:uploaded_data].to_s.empty? + unless (params[:top_bar][:uploaded_data].to_s.empty? and params[:default_image][:uploaded_data].to_s.empty? and params[:bg1][:uploaded_data].to_s.empty? and params[:bg2][:uploaded_data].to_s.empty? and params[:bottom_bar][:uploaded_data].to_s.empty?) add_theme(@election.embed_custom_string) end