From 71d32463235b441f81614bc59b7c67b0931e7d57 Mon Sep 17 00:00:00 2001 From: francis Date: Tue, 14 Oct 2008 12:48:48 +0000 Subject: Remove details field now not used. --- app/models/info_request.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'app/models/info_request.rb') diff --git a/app/models/info_request.rb b/app/models/info_request.rb index b1d411113..0c99dadbf 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -23,7 +23,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request.rb,v 1.145 2008-10-03 17:09:06 francis Exp $ +# $Id: info_request.rb,v 1.146 2008-10-14 12:48:49 francis Exp $ require 'digest/sha1' require File.join(File.dirname(__FILE__),'../../vendor/plugins/acts_as_xapian/lib/acts_as_xapian') @@ -316,7 +316,7 @@ public end # change status, including for last event for later historical purposes - def set_described_state(new_state, details = nil) + def set_described_state(new_state) ActiveRecord::Base.transaction do self.awaiting_description = false last_event = self.get_last_event @@ -329,10 +329,7 @@ public self.calculate_event_states if new_state == 'requires_admin' - RequestMailer.deliver_requires_admin(self, details) - else - # XXX this chucks details if we are not moving to requires_admin - - # the user is not meant to have entered any. + RequestMailer.deliver_requires_admin(self) end end -- cgit v1.2.3