aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-04-01 15:53:21 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-04-01 15:53:21 +0100
commit22b4d5c4d19f882e07f45d083a64ae3fa4e2dc69 (patch)
tree64dc65056df7deec75c2db618ad474090b16a5ec /perllib/FixMyStreet/App/Controller
parent00f183081599bfbb0b68724d058658123639fb84 (diff)
Move logic into problem
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm10
1 files changed, 2 insertions, 8 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 67fe12697..c2488424d 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -1032,9 +1032,6 @@ Save the user and the report.
Be smart about the user - only set the name and phone if user did not exist
before or they are currently logged in. Otherwise discard any changes.
-Save the problem as unconfirmed. FIXME - change this behaviour with respect to
-the user's logged in status.
-
=cut
sub save_user_and_report : Private {
@@ -1044,14 +1041,11 @@ sub save_user_and_report : Private {
# Save or update the user if appropriate
if ( !$report_user->in_storage ) {
- $report_user->insert(); # FIXME - set user state to 'unconfirmed'
+ $report_user->insert();
}
elsif ( $c->user && $report_user->id == $c->user->id ) {
$report_user->update();
-
- # we can also confirm the report straight away
- $report->state('confirmed');
- $report->confirmed( \'ms_current_timestamp()' ); # FIXME - move to model
+ $report->confirm;
}
else {