aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * Explicitly pass one argument to encode_json()Tom Hukins2019-04-09-3/+3
| | | | | | | | | | | | | | | | Previously, it was unclear how many arguments the function took. When running tests I saw the error: Too many arguments for Cpanel::JSON::XS::encode_json at perllib/FixMyStreet/Map/WMTSBase.pm line 217, near "}"
| * Avoid string evalTom Hukins2019-04-09-3/+2
| | | | | | | | Instead, load the required module directly.
| * Stop loading an unused moduleTom Hukins2019-04-09-1/+0
| | | | | | | | The only use of File::Slurp was removed in 1c5c614af7a0265bd.
* | Use REQUEST_URI, not PATH_INFO, to infer path.Matthew Somerville2019-04-24-0/+6
| | | | | | | | | | This fixes an issue with slashes in category names in admin (as PATH_INFO can't tell the difference between / and %2F).
* | Escape body name in admin title.Matthew Somerville2019-04-24-2/+5
| |
* | [BANES] Turn on new duplicate suggesting.Matthew Somerville2019-04-23-0/+2
| |
* | [Northamptonshire] only clear current layer on reloadStruan Donald2019-04-23-3/+2
| | | | | | | | | | | | | | Call newRequest directly rather than with an event to avoid resetting all the layers that have been used and hence removing all the features. Fixes mysociety/fixmystreet-commercial#1354
* | [Northamptonshire] update vegetation subcategory layersStruan Donald2019-04-23-2/+2
| | | | | | | | | | Use carriageway layers for these instead of Tree layer as Tree layer was not always appropriate.
* | [Northamptonshire] set layer ids based on live/not liveStruan Donald2019-04-23-10/+11
| | | | | | | | | | The live ans staging sites use different layers to set the correct ones depending on whether is_live is true
* | fire asset not found if asset layer is not visibleStruan Donald2019-04-23-0/+2
| | | | | | | | | | this is required so that any hiding of messages etc occurs when the layer is hidden.
* | [Northamptonshire] add streetlight category messageStruan Donald2019-04-23-1/+23
| | | | | | | | Fixes mysociety/fixmystreet-commercial#1343
* | [Open311] Ensures non_public/hidden reports aren’t visible at /open311Dave Arter2019-04-23-2/+45
| |
* | [Northamptonshire] include google tracking code in headerStruan Donald2019-04-12-0/+1
|/
* [Open311] handle bad FixMyStreet id in updatesStruan Donald2019-04-09-0/+40
| | | | | If an update has a fixmystreet id in it check that it looks like an integer and if not issue a warning and skip the update.
* [Northamptonshire] update layer idsStruan Donald2019-04-09-7/+7
|
* set maxlength attribute on inputs if present in validationStruan Donald2019-04-09-0/+5
| | | | | | If a field has a maximum length set in the javascript validation then add a maxlength attribute so the user doesn't have to wait till submission to find out about it.
* [Northamptonshire] restrict title to 120 charactersStruan Donald2019-04-09-2/+46
| | | | | | Prevent people from using very long titles. Fixes mysociety/fixmystreet-commercial#1344
* [Northamptonshire] use the correct layer environment for assetsStruan Donald2019-04-08-2/+12
| | | | | The tile URL includes a parameter for the client number which we were not using so configure this based on live or staging.
* [Northamptonshire] update footer privacy policy linkStruan Donald2019-04-08-1/+1
| | | | For mysociety/fixmystreet-commercial#1331
* ignore always_visible layers in layer visibility changeStruan Donald2019-04-05-1/+1
| | | | | Layers that are always visible mean that we can end up with a count of 1 which means we don't re-display the pin
* [Northamptonshire] make no asset and emergency code cooperateStruan Donald2019-04-05-9/+37
| | | | | | | | The code to stop submission of an emergency category and the code to stop submission of reports with no assets were conflicting. This makes the emergency code take precedence over the asset code as there is no point in telling the user they have not selected an asset and then telling them to phone the council.
* [Northamptonshire] do not show emergency message for HE roadsStruan Donald2019-04-05-1/+1
|
* Merge branch 'docs-email-update'Matthew Somerville2019-04-05-27/+4
|\
| * Remove email address from docs.abimysoc2019-04-05-27/+4
| | | | | | | | | | To (hopefully) encourage people to join, and interact on, the mailing list instead.
* | Merge branch 'open311-better-get-error'Matthew Somerville2019-04-05-62/+42
|\ \ | |/ |/|
| * [Open311] Factor GET/POST calls together.Matthew Somerville2019-04-05-62/+42
| | | | | | | | This means GET errors will give better output.
* | Merge branch '2435-admin-anonymous-report'Matthew Somerville2019-04-05-16/+22
|\ \
| * | Fix superusers creating anonymous reports.Matthew Somerville2019-04-05-16/+22
| |/
* | [UK] Deal with 2019 local government changes.Matthew Somerville2019-04-04-4/+49
| |
* | Factor to common FixMyStreet::MapIt call.Matthew Somerville2019-04-04-54/+50
|/
* [fixmystreet.com] extra not responsible messages for NCCStruan Donald2019-04-04-0/+13
|
* [Northamptonshire] prevent reports unless clicking on an assetStruan Donald2019-04-04-0/+100
| | | | | Prevent the user from making a report unless they have clicked on an asset.
* [Northamptonshire] No form on emergency categoriesMatthew Somerville2019-04-04-0/+26
|
* [Northamptonshire] Factor out shared variables.Matthew Somerville2019-04-04-59/+26
|
* [lincolnshire] do not allow fms.com email submit footer overrideStruan Donald2019-04-02-0/+5
|
* [fixmystreet.com] override default email submit footer settingsStruan Donald2019-04-02-8/+5
|
* Add default settings for email submit template footerStruan Donald2019-04-02-0/+4
|
* [Bristol] add branding to email templatesStruan Donald2019-04-02-0/+28
|
* [Lincolnshire] add branding to email templatesStruan Donald2019-04-02-0/+23
|
* [Buckinghamshire] add branding to email templatesStruan Donald2019-04-02-0/+34
| | | | Fixes mysociety/fixmystreet-commercial#1272
* allow customisation of email header image fileStruan Donald2019-04-02-2/+3
| | | | | Add a setting for the name of the image file used in the email header so cobrands can override it
* Make sure MapIt generation always used if given.Matthew Somerville2019-04-01-20/+25
|
* Merge branch 'issues/commercial/1304-duplicate-report-feedback'Matthew Somerville2019-03-29-156/+132
|\
| * If no category selected, default to main bodies.Matthew Somerville2019-03-28-1/+5
| | | | | | | | | | | | Otherwise, e.g. going straight to /report/new when category groups enabled may cause always visible layers to disappear because bodies gets emptied.
| * [UK] Make roadworks layer a standard road layer.Matthew Somerville2019-03-28-37/+17
| | | | | | | | This gives us the "set up on load" functionality.
| * Matching vertical margins for new `js-post-category-messages`Zarino Zappia2019-03-28-63/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | * Shared margin rules for `.box-warning` and `.extra-category-questions` in `_base.scss` and `_layout.scss` (where the margin can potentially change based on the `$mappage-sidebar-padding` variable). * Move the Sass rules for `.box-warning` further up `_base.scss` to be next to `.extra-category-questions` since they’re both so similar. * No need for `.full-width` on the `.extra-category-questions` div since we were overriding the margin-top anyway. * Remove the little triangle between the category select box and the grey `.extra-category-questions` div, since the category questions isn’t always presented immediately after the category select box.
| * Move added messages to the same place.Matthew Somerville2019-03-28-8/+13
| |
| * Fetch reporting data if needed, even if no map.Matthew Somerville2019-03-28-9/+12
| |
| * Tidy up duplicate fetching code.Matthew Somerville2019-03-28-26/+8
| | | | | | | | | | | | Run immediately, not onready, so the category change listener is in place; listen to a better event, removing need for a debouncer; don't look up if empty category.
| * Fix duplicate email alert signup.Matthew Somerville2019-03-28-1/+1
| |