diff options
author | Struan Donald <struan@exo.org.uk> | 2013-01-28 16:51:29 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-01-28 16:51:29 +0000 |
commit | db6f6e988118285c34c5172971816d883a06787d (patch) | |
tree | 9539e9e9731777770b241a6d023428f11789dae2 | |
parent | 31b05b2bb55eada52bf5c9ff285a20f1a3130dec (diff) |
only try and generate meta if the problem is confirmed otherwise we get errors
-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 fdec85770..71a774eaf 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -759,7 +759,7 @@ sub as_hashref { used_map => $self->used_map, is_fixed => $self->fixed_states->{ $self->state } ? 1 : 0, photo => $self->get_photo_params, - meta => $self->meta_line( $c ), + meta => $self->confirmed ? $self->meta_line( $c ) : '', }; } |