diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-11-27 21:38:28 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-12-16 16:58:33 +0000 |
commit | 749fe96b5b987bec29fb608acfcbdb81e57aaebf (patch) | |
tree | 80164c1305c26698c13286dd3de506198a240673 /perllib/FixMyStreet/DB | |
parent | d28745730bf22b9447645fd6543b4a164976f761 (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')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 2 |
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, }); } |