aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Open311/UpdatesBase.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-10 14:38:17 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-14 18:25:19 +0100
commit67823bc788ce744e1228a8602b9a5aa805771ced (patch)
tree0b1eddd4e071314573e52206d0061cab022e1cd0 /perllib/Open311/UpdatesBase.pm
parenteed6158981240afce10824e82fa86f14b38f3167 (diff)
Centralise update creation to include fields.
Given the user, we can infer the name if not provided, and the extra data if a staff user. We can also provide defaults for various other fields. Always have superuser take precedence over from_body.
Diffstat (limited to 'perllib/Open311/UpdatesBase.pm')
-rw-r--r--perllib/Open311/UpdatesBase.pm5
1 files changed, 0 insertions, 5 deletions
diff --git a/perllib/Open311/UpdatesBase.pm b/perllib/Open311/UpdatesBase.pm
index 0be324773..c2f3fae0d 100644
--- a/perllib/Open311/UpdatesBase.pm
+++ b/perllib/Open311/UpdatesBase.pm
@@ -154,13 +154,8 @@ sub process_update {
$request, $p, $state, $old_state,
$external_status_code, $old_external_status_code
),
- mark_fixed => 0,
- mark_open => 0,
- anonymous => 0,
- name => $self->system_user->name,
confirmed => $request->{comment_time},
created => $request->{comment_time},
- state => 'confirmed',
}
);