From 5c79337ad423cd7fc3cada9b7830d90726387987 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 17 Aug 2015 17:12:26 +0100 Subject: Simplify/consolidate body restriction db code. Make dashboard work properly in two-tier councils, showing reports sent to both. Create an index on the array of the bodies_str column to speed up performance, and use that throughout the code replacing all LIKE scans. This also enables a simplifying tidy of the restriction code. --- notes/cobranding.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'notes') diff --git a/notes/cobranding.txt b/notes/cobranding.txt index 3e902abc8..a62747397 100644 --- a/notes/cobranding.txt +++ b/notes/cobranding.txt @@ -10,8 +10,7 @@ NB: this is moderately specific to producing cobrands for UK councils 1: copy an exiting perllib/FixMyStreet/Cobrand/ file to perllib/FixMyStreet/Cobrand/ExampleCom.pm * Change package name at top of file * Change following functions accordingly: - site_restriction - problems_clause + body_restriction enter_postcode_text area_check base_url -- cgit v1.2.3