From 7fd83d90dc8b867e098b82d7c72d2d8029bfd479 Mon Sep 17 00:00:00 2001 From: francis Date: Wed, 21 May 2008 22:37:32 +0000 Subject: Show people tracking same query, when you are on search page. Put name of admin user rather than import_csv. Send automated email to remind people to clarify their request. Send response overdue alerts multiple times for one request (if it becomes overdue again after a clarification etc.) Overdue response alert email click through shows how many days overdue it is near where you write your reply. --- app/controllers/admin_public_body_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers/admin_public_body_controller.rb') diff --git a/app/controllers/admin_public_body_controller.rb b/app/controllers/admin_public_body_controller.rb index 071af1ee8..e8ee58f95 100644 --- a/app/controllers/admin_public_body_controller.rb +++ b/app/controllers/admin_public_body_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: admin_public_body_controller.rb,v 1.13 2008-04-15 01:06:12 francis Exp $ +# $Id: admin_public_body_controller.rb,v 1.14 2008-05-21 22:37:32 francis Exp $ class AdminPublicBodyController < ApplicationController layout "admin" @@ -71,13 +71,13 @@ class AdminPublicBodyController < ApplicationController if not params[:tag].empty? # Try with dry run first csv_contents = params[:csv_file].read - en = PublicBody.import_csv(csv_contents, params[:tag], true) + en = PublicBody.import_csv(csv_contents, params[:tag], true, admin_http_auth_user()) errors = en[0] notes = en[1] if errors.size == 0 # And if OK, with real run - en = PublicBody.import_csv(csv_contents, params[:tag], false) + en = PublicBody.import_csv(csv_contents, params[:tag], false, admin_http_auth_user()) errors = en[0] notes = en[1] if errors.size != 0 -- cgit v1.2.3