From 28e65f615c24b96225d24f3f1e0c03f229f8fe4e Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Mon, 4 Mar 2013 09:38:07 +1100 Subject: Fix bug when user not owner of request changing state to requires_admin email should come from user making the change --- app/controllers/request_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/request_controller.rb') diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 36ec7ee13..2cabb3cf0 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -408,7 +408,7 @@ class RequestController < ApplicationController # Make the state change old_described_state = info_request.described_state - info_request.set_described_state(params[:incoming_message][:described_state]) + info_request.set_described_state(params[:incoming_message][:described_state], authenticated_user) # If you're not the *actual* requester. e.g. you are playing the # classification game, or you're doing this just because you are an -- cgit v1.2.3