From 38d34a25f74a71621f1b5823a148032cfcba7fba Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Wed, 7 Aug 2013 16:55:11 +0100 Subject: Set the calculated state on external requests. Set to 'waiting_response' on creation, to match the displayed state. --- app/controllers/api_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/api_controller.rb') diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 49b226e4b..e7bea67ef 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -63,6 +63,8 @@ class ApiController < ApplicationController :smtp_message_id => nil ) + request.set_described_state('waiting_response') + # Return the URL and ID number. render :json => { 'url' => make_url("request", request.url_title), -- cgit v1.2.3