aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-08-03 11:04:06 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-08-03 11:04:06 +0100
commit905b86c2439d58fe595267f3b39c9bfd9c300233 (patch)
tree61bc1910cebd7860f9fc09cb0ba050bb867e4888
parentaa3cbc91dbc7e0c1dd416b90d963d06f3e07738a (diff)
Relationship is has_one, not has_many, was causing wrong nearby photos to appear on alert page.
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index ff730958a..2df26fde3 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -104,7 +104,7 @@ __PACKAGE__->has_many(
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3sw/1dqxlTvcWEI/eJTm4w
# Add fake relationship to stored procedure table
-__PACKAGE__->has_many(
+__PACKAGE__->has_one(
"nearby",
"FixMyStreet::DB::Result::Nearby",
{ "foreign.problem_id" => "self.id" },