diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-15 16:44:25 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-16 09:37:45 +0000 |
commit | bbab9afd9952b46b0f395705e06dc43fffb16b15 (patch) | |
tree | 0199aee38d00b4ce42077f314b39830ab5f0e201 /perllib/FixMyStreet/Script | |
parent | 68ba122ede2e5b19f76e671f6cf910d5047686d0 (diff) |
Fix error sending `requires_inspection` reports.
has_permission_to() is called in Reports.pm and requires the cobrand to be
set on the schema. The test was manually doing this which hid the problem.
Diffstat (limited to 'perllib/FixMyStreet/Script')
-rw-r--r-- | perllib/FixMyStreet/Script/Reports.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Script/Reports.pm b/perllib/FixMyStreet/Script/Reports.pm index 04ad1c893..aca894d03 100644 --- a/perllib/FixMyStreet/Script/Reports.pm +++ b/perllib/FixMyStreet/Script/Reports.pm @@ -45,6 +45,7 @@ sub send(;$) { while (my $row = $unsent->next) { my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($row->cobrand)->new(); + FixMyStreet::DB->schema->cobrand($cobrand); if ($debug_mode) { $debug_unsent_count++; |