diff options
author | Struan Donald <struan@exo.org.uk> | 2012-04-27 14:01:44 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-04-27 14:01:44 +0100 |
commit | 3b398fe1783b13162228a73688c67dcfbf2bb9ac (patch) | |
tree | d94e5bd9c8ea6d07e47cee72a68a9e526b3be2d8 | |
parent | 6280811fb4a16e7351889792dfdaad92290473fb (diff) |
avoid case issus with comment status
-rw-r--r-- | perllib/Open311/GetServiceRequestUpdates.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index b93dea82c..f17c6e685 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -90,12 +90,12 @@ sub update_comments { } ); - if ( $p->is_open and $request->{status} eq 'closed' ) { + if ( $p->is_open and lc($request->{status}) eq 'closed' ) { $p->state( 'fixed - council' ); $p->update; $comment->mark_fixed( 1 ); - } elsif ( ( $p->is_closed || $p->is_fixed ) and $request->{status} eq 'open' ) { + } elsif ( ( $p->is_closed || $p->is_fixed ) and lc($request->{status}) eq 'open' ) { $p->state( 'confirmed' ); $p->update; |