aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Questionnaire.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-08 13:51:17 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-08 13:51:17 +0100
commit500190d03fcbfd8993f46b61bca9e12a7339dbc2 (patch)
tree3398fbde51e5ef35040b6d9611cb2eabd618071d /perllib/FixMyStreet/App/Controller/Questionnaire.pm
parente19d63897578e31cf40cc185a663cebd8edb9c14 (diff)
Switch to using c->cobrand->problems to return all problems for a cobrand (so on Barnet only return Barnet problems).
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Questionnaire.pm')
-rwxr-xr-xperllib/FixMyStreet/App/Controller/Questionnaire.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Questionnaire.pm b/perllib/FixMyStreet/App/Controller/Questionnaire.pm
index 58c88979d..b4c9ade92 100755
--- a/perllib/FixMyStreet/App/Controller/Questionnaire.pm
+++ b/perllib/FixMyStreet/App/Controller/Questionnaire.pm
@@ -108,8 +108,7 @@ sub submit_creator_fixed : Private {
$c->detach('missing_problem');
}
- my $problem = $c->model('DB::Problem')->find( { id =>
- $c->stash->{problem} } );
+ my $problem = $c->cobrand->problems->find( { id => $c->stash->{problem} } );
# you should not be able to answer questionnaires about problems
# that you've not submitted