From 548d6f3789d5b07aa259444acc816a4e98452f2b Mon Sep 17 00:00:00 2001 From: Date: Thu, 29 May 2008 16:34:02 -0400 Subject: [PATCH 1/1] 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. --- app/controllers/election_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2