diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-26 15:52:49 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-26 15:52:49 +0100 |
commit | f7a711c5b544d876928ba572f46912e09eff9b83 (patch) | |
tree | fff3fbc85b2d9271ea6b9de3a21a02e096802948 /perllib/FixMyStreet/App/Controller/Questionnaire.pm | |
parent | 8ab2f611d11503cc7fea779be7f7c2b314f91e74 (diff) |
consistency in how we set/check booleans from the database
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Questionnaire.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Questionnaire.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Questionnaire.pm b/perllib/FixMyStreet/App/Controller/Questionnaire.pm index f6d7299b3..1b1e5e547 100755 --- a/perllib/FixMyStreet/App/Controller/Questionnaire.pm +++ b/perllib/FixMyStreet/App/Controller/Questionnaire.pm @@ -90,7 +90,7 @@ sub submit_creator_fixed : Private { ); unless ( $questionnaire->in_storage ) { - $questionnaire->ever_reported( $c->stash->{reported} eq 'Yes' ? 'y' : 'n' ); + $questionnaire->ever_reported( $c->stash->{reported} eq 'Yes' ); $questionnaire->whensent( \'ms_current_timestamp()' ); $questionnaire->whenanswered( \'ms_current_timestamp()' ); $questionnaire->insert; |