diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-03 16:41:15 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-03 16:41:15 +0100 |
commit | 75e4f3e1176d14281d2063fd233626d029c30b1c (patch) | |
tree | 9435dfd8a421cc23596bd2c3ebefc019f09e552f /perllib/FixMyStreet/App/Controller | |
parent | 539206556a45bf5cc03fcb87e2ea1ecdb3a40941 (diff) |
Remove questionnaire ported code, move another static page.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Questionnaire.pm | 11 | ||||
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Static.pm | 4 |
2 files changed, 10 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Questionnaire.pm b/perllib/FixMyStreet/App/Controller/Questionnaire.pm index 766c886f7..58c88979d 100755 --- a/perllib/FixMyStreet/App/Controller/Questionnaire.pm +++ b/perllib/FixMyStreet/App/Controller/Questionnaire.pm @@ -174,11 +174,12 @@ sub submit_standard : Private { $reported = 0 if $c->stash->{reported} eq 'No'; my $q = $c->stash->{questionnaire}; - $q->whenanswered( \'ms_current_timestamp()' ); - $q->ever_reported( $reported ); - $q->old_state( $old_state ); - $q->new_state( $c->stash->{been_fixed} eq 'Unknown' ? 'unknown' : ($new_state || $old_state) ); - $q->update; + $q->update( { + whenanswered => \'ms_current_timestamp()', + ever_reported => $reported, + old_state => $old_state, + new_state => $c->stash->{been_fixed} eq 'Unknown' ? 'unknown' : ($new_state || $old_state), + } ); # Record an update if they've given one, or if there's a state change if ( $new_state || $c->stash->{update} ) { diff --git a/perllib/FixMyStreet/App/Controller/Static.pm b/perllib/FixMyStreet/App/Controller/Static.pm index b58b55852..2e6bda28c 100755 --- a/perllib/FixMyStreet/App/Controller/Static.pm +++ b/perllib/FixMyStreet/App/Controller/Static.pm @@ -46,6 +46,10 @@ sub posters : Global : Args(0) { my ( $self, $c ) = @_; } +sub iphone : Global : Args(0) { + my ( $self, $c ) = @_; +} + __PACKAGE__->meta->make_immutable; 1; |