Skip to content

Commit

Permalink
[CBeds] Stop road layer triggering for PROW
Browse files Browse the repository at this point in the history
Rights of way has to be excluded from the not on a road
stopper or reports can't be made.

Map and server side in .com and society-servers with same branch name

https://mysocietysupport.freshdesk.com/a/tickets/3760
  • Loading branch information
MorayMySoc authored and dracos committed May 13, 2024
1 parent b8c6f42 commit 3727f42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/cobrands/fixmystreet-uk-councils/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,16 +599,17 @@ var centralbeds_types = [

function cb_should_not_require_road() {
// Ensure the user can select anywhere on the map if they want to
// make a report in the "Trees" or "Fly Tipping" categories.
// make a report in the "Trees", "Fly Tipping" or "Rights of way" categories.
// This means we don't show the "not found" message if no category/group has yet been selected
// or if one of the groups containing either the "Trees" or "Fly Tipping" categories has been
// selected.
// or if one of the groups containing either the "Trees", "Fly Tipping" or "Rights of way"
// categories has been selected.
var selected = fixmystreet.reporting.selectedCategory();
return selected.category === "Trees" ||
(selected.group === "Grass, Trees, Verges and Weeds" && !selected.category) ||
selected.category === "Fly Tipping" ||
(selected.group === "Flytipping, Bins and Graffiti" && !selected.category) ||
selected.category === 'Housing Fly-tipping' ||
selected.category === 'Rights of way' ||
(!selected.group && !selected.category);
}

Expand Down

0 comments on commit 3727f42

Please sign in to comment.