aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-11-27 21:38:28 +0000
committerMatthew Somerville <matthew@mysociety.org>2015-12-16 16:58:33 +0000
commit749fe96b5b987bec29fb608acfcbdb81e57aaebf (patch)
tree80164c1305c26698c13286dd3de506198a240673 /perllib/FixMyStreet/DB/Result/Problem.pm
parentd28745730bf22b9447645fd6543b4a164976f761 (diff)
Remove risk of infinite loop in PhotoSet.
Use a separate attribute for data direct from a database row when creating a PhotoSet, so that data will always contain one or more photo IDs.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-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 f2df41f09..449bb5be8 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -869,7 +869,7 @@ sub get_photoset {
eval "use $class";
return $class->new({
c => $c,
- data => $self->photo,
+ db_data => $self->photo,
object => $self,
});
}