diff options
author | Dave Arter <davea@mysociety.org> | 2016-10-18 15:42:58 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-10-19 14:46:16 +0100 |
commit | 6b0712422ee13384da68f5cae8ef2f5274aa6318 (patch) | |
tree | d1b11e3a846dbdf785b14230022d0d9c578e0a41 /perllib/FixMyStreet/DB/Result/Problem.pm | |
parent | 255d42b042d06c2a4da39e1a1a73c331862a1c62 (diff) |
Clarify category behaviour for response priorities
- Priorities with no categories selected are available to all categories
- Display active categories in response priorities table
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-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 855732f83..13fd74807 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -681,7 +681,7 @@ sub response_priorities { return $self->result_source->schema->resultset('ResponsePriority')->search( { 'me.body_id' => $self->bodies_str_ids, - 'contact.category' => $self->category, + 'contact.category' => [ $self->category, undef ], }, { order_by => 'name', |