diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-12-15 17:25:05 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-12-15 17:25:05 +0000 |
commit | 2fd63afc46db7a3a33e608bf1f4b5c0b52c18728 (patch) | |
tree | ff9ed0f73cf0979acacb9f03fffeb62623be475a /perllib/FixMyStreet/DB/Result/Problem.pm | |
parent | b8aa0d6da9009dc3182093165df9b1a4c6d7d164 (diff) | |
parent | 6375eb5d31aa250f5d990d6d6420dd04cf25e3bf (diff) |
Merge branch 'issues/forcouncils/108-pick-up-a-priority'
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index ec1534fe9..203e72fae 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -681,16 +681,7 @@ alphabetical order of name. sub response_priorities { my $self = shift; - return $self->result_source->schema->resultset('ResponsePriority')->search( - { - 'me.body_id' => $self->bodies_str_ids, - 'contact.category' => [ $self->category, undef ], - }, - { - order_by => 'name', - join => { 'contact_response_priorities' => 'contact' }, - } - ); + return $self->result_source->schema->resultset('ResponsePriority')->for_bodies($self->bodies_str_ids, $self->category); } # returns true if the external id is the council's ref, i.e., useful to publish it |