aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-11-27 16:08:56 +0000
committerMatthew Somerville <matthew@mysociety.org>2015-12-02 17:41:48 +0000
commit7b20745945638cce030879eafc8cac8f8bd81c56 (patch)
tree6c1cf64ad4d818c10d996cb3e6d8de05c512cdfa /perllib/FixMyStreet/DB/Result/Problem.pm
parent23949e52f20020fa56cd54655a487ef97ebbc222 (diff)
Move main bin scripts to separate packages.
Maintain old location wrappers.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index 2eb6c6fc7..f2df41f09 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -477,6 +477,11 @@ sub url {
return "/report/" . $self->id;
}
+sub admin_url {
+ my ($self, $cobrand) = @_;
+ return $cobrand->admin_base_url . '/report_edit/' . $self->id;
+}
+
=head2 get_photo_params
Returns a hashref of details of the attached photo, if any, for use in templates.