Skip to content

Commit

Permalink
few more static states
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Aug 18, 2011
1 parent d4d82d6 commit 34ae11b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion perllib/FixMyStreet/App/Controller/Questionnaire.pm
Expand Up @@ -245,7 +245,7 @@ sub process_questionnaire : Private {
if ($c->stash->{been_fixed} eq 'No' || $c->stash->{been_fixed} eq 'Unknown') && !$c->stash->{another};

push @errors, _('Please provide some explanation as to why you\'re reopening this report')
if $c->stash->{been_fixed} eq 'No' && $c->stash->{problem}->state eq 'fixed' && !$c->stash->{update};
if $c->stash->{been_fixed} eq 'No' && $c->stash->{problem}->is_fixed() && !$c->stash->{update};

$c->forward('/report/new/process_photo');
push @errors, $c->stash->{photo_error}
Expand Down
2 changes: 1 addition & 1 deletion perllib/FixMyStreet/DB/Result/User.pm
Expand Up @@ -165,7 +165,7 @@ sub belongs_to_council {
my $self = shift;
my $council = shift;

my %councils = map { $_ => 1 } split '\|', $council;
my %councils = map { $_ => 1 } split ',', $council;

return 1 if $self->from_council && $councils{ $self->from_council };

Expand Down
2 changes: 1 addition & 1 deletion templates/web/default/around/around_map_list_items.html
Expand Up @@ -6,7 +6,7 @@
<li>
<a href="[% c.uri_for('/report', p.problem.id ) %]">[% p.problem.title | html %]</a>
<small>[% prettify_epoch( p.problem.confirmed_local.epoch, 1 ) %], [% dist %]km</small>
[% IF p.problem.state == 'fixed' %]
[% IF p.problem.is_fixed %]
<small>[% loc('(fixed)') %]</small>
[% END %]
</li>
Expand Down
2 changes: 1 addition & 1 deletion templates/web/default/around/on_map_list_items.html
Expand Up @@ -3,7 +3,7 @@
<li>
<a href="[% c.uri_for('/report', p.id ) %]">[% p.title | html %]</a>
<small>[% prettify_epoch( p.confirmed_local.epoch, 1 ) %]</small>
[% IF p.state == 'fixed' %]
[% IF p.is_fixed %]
<small>[% loc('(fixed)') %]</small>
[% END %]
</li>
Expand Down

0 comments on commit 34ae11b

Please sign in to comment.