diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-10-03 17:19:42 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-10-03 17:42:24 +0100 |
commit | 5b3824c84f0ade0d8ac9258eb30379f8d7e11023 (patch) | |
tree | 56a53d3b4dde623447f0d89d1b3c5ea248660522 /perllib/FixMyStreet/App/Controller | |
parent | 39c1b648b30e67ceb8912a35b386eb4ee23857b8 (diff) |
Allow closed->fixed transition in questionnaire, and spot closed problems in response text (fix #269).
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Questionnaire.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Questionnaire.pm b/perllib/FixMyStreet/App/Controller/Questionnaire.pm index f0cc72e07..46d6350d7 100755 --- a/perllib/FixMyStreet/App/Controller/Questionnaire.pm +++ b/perllib/FixMyStreet/App/Controller/Questionnaire.pm @@ -157,6 +157,8 @@ sub submit_standard : Private { my $new_state = ''; $new_state = 'fixed - user' if $c->stash->{been_fixed} eq 'Yes' && FixMyStreet::DB::Result::Problem->open_states()->{$old_state}; + $new_state = 'fixed - user' if $c->stash->{been_fixed} eq 'Yes' && + FixMyStreet::DB::Result::Problem->closed_states()->{$old_state}; $new_state = 'confirmed' if $c->stash->{been_fixed} eq 'No' && FixMyStreet::DB::Result::Problem->fixed_states()->{$old_state}; |