aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
* Add perl 5.26/5.28 support.Matthew Somerville2018-10-04-0/+3
| | | | | Upgrade a couple of modules, deal with '.' not present in @INC, captures returning undef rather than '', and a test.
* Deal with a variety of low-level test warnings.Matthew Somerville2018-10-04-1/+2
| | | | | | | | | | * Stop red warning being output by S3 bucket creation failure test * Make sure 'num_old_reports' is always a number on /around pages * Stop 'category_extra' being generated when unnecessary * Prevent warning printed in getservicerequestupdates.t * Prevent info lines from being output in develop.t * Remove line of #s in root.t * And an ID diag in zurich.t
* [UK] Fix ward pages containing ampersands.Matthew Somerville2018-10-03-2/+3
| | | | | Map ward names on their short names, so any processing applies equally to URL and names returned by MapIt.
* Handle failure of photo upload more gracefullyDave Arter2018-09-28-2/+8
|
* Speed up fetching lists of bodies.Matthew Somerville2018-09-25-6/+15
| | | | | | Use a HashRefInflator wherever all_sorted is used, with consequential changes to deal with it now not being an object (e.g. add some with_* functions for manual fetching of extra data).
* Don't lose from_body if edited by non-superuser.Matthew Somerville2018-09-20-5/+6
| | | | | If an admin with the user_edit permission but not user_assign_body edited a user with from_body set, the from_body field was lost.
* Add cobrand hook for disallowing updates.Dave Arter2018-09-13-0/+1
| | | | | Provides a template override for cobrands to show if updates aren't allowed on the problem.
* allow web based use of report importStruan Donald2018-09-13-0/+6
| | | | | | | | if a web parameter is passed to /import then display the email confirmation sent page rather than a SUCCESS message. Enables this page to be used for creating partial reports from a web page. For mysociety/collideoscope#17
* Add cobrand hook for disallowing title moderation.Matthew Somerville2018-09-13-1/+3
|
* Prevent scan of all problems on /_dev pages.Matthew Somerville2018-09-12-3/+3
|
* move body stats page code to own methodStruan Donald2018-09-12-8/+19
| | | | Enables this to be used in cobrand hooks for reports data
* [Zurich] use report_page_data cobrand hookStruan Donald2018-09-12-23/+0
| | | | remove hard coded report page behaviour
* hook to allow cobrand to generate reports page dataStruan Donald2018-09-12-0/+4
|
* Update user object before attempting sign-in.Matthew Somerville2018-09-06-1/+2
| | | | | This prevents leaking of user account phone number on a failed login attempt.
* Check all contacts for metadata and non-public.Matthew Somerville2018-09-06-6/+13
| | | | | | Previously it would only check the first matching entry, which could miss out on information if two bodies had the same category and only the second one looked at had metadata, or was marked as non-public.
* Include report in _dev confirm_report_sent email.Matthew Somerville2018-08-30-0/+1
|
* Do not delete other category extras on first matchMatthew Somerville2018-08-29-8/+2
|
* Merge branch 'issues/collideoscope/30-user-moderation'Matthew Somerville2018-08-29-137/+66
|\
| * Allow cobrand to add extra ability to moderate.Matthew Somerville2018-08-29-9/+8
| |
| * Move moderation check to own function, tidy up.Matthew Somerville2018-08-28-2/+2
| |
| * Refactor together similar moderate functions.Matthew Somerville2018-08-28-127/+57
| |
* | Merge branch 'dev-confirmation-pages'Matthew Somerville2018-08-29-50/+121
|\ \
| * | Move all test endpoints under /_dev.Zarino Zappia2018-08-29-50/+121
| |/
* / Remove need for category_extras ajax call.Matthew Somerville2018-08-28-48/+55
|/ | | | | | Add by_category output to the /report/new/ajax call, containing all the data that /report/new/category_extras returns for one category. Then alter the JS to use that data immediately when needed.
* Include user agent in contact form emails.Matthew Somerville2018-08-21-0/+1
|
* Fix inspector dragging of pins.Matthew Somerville2018-08-09-2/+5
|
* allow front end to not send to specific bodyStruan Donald2018-08-06-2/+13
| | | | | | | | add a do_not_send parameter to reports which allows the front end to specify a comma separated list of bodies that reports should not be sent to even if there is a valid contact match. This enables asset layers to override backend body processing, e.g. if a body only accepts reports that are on a road this allows the front end to specify that.
* [Buckinghamshire] Fix hard-coded category lookup.Matthew Somerville2018-08-03-1/+1
|
* Allow asset layer display to be body dependent.Struan Donald2018-08-03-1/+18
| | | | | | | | | | | Return a list of associated bodies on around/new pages and in category ajax calls, and use that when deciding whether to show/hide layers. If the layer has no body information, then we show it as before, maybe based on category selected; if it does, it is only shown if the layer body matches the bodies for the point. As part of this create a new VectorAsset class to handle all the visibility changes for asset layers as it makes it a bit tidier.
* Trim spaces from user/report search input.Matthew Somerville2018-07-31-0/+2
|
* Allow questionnaire pages to be revisited within 2 minutesDave Arter2018-07-11-1/+2
| | | | | | | | Users who double click links were seeing an error when visiting the questionnaire page. This change gives a grace period of two minutes for revisiting the questionnaire page. Fixes #2123.
* Always show all reports by default on /my.Matthew Somerville2018-07-09-4/+6
|
* Do not fetch problem extra on /my.Matthew Somerville2018-07-09-1/+1
| | | | The code thought it was fetching the category extra, which it is not.
* Add cobrand hook for custom searching on disambiguation pageDave Arter2018-07-04-0/+3
|
* Merge branch 'issues/2098-repaginating-splines'Matthew Somerville2018-07-03-0/+4
|\
| * Only display reports from last 6 months on around.Struan Donald2018-07-03-0/+4
| | | | | | | | | | | | | | Add a checkbox to show older reports, plus if we get to the end of the new reports then instead of a Next button show a "show older" button that will reload the current page but with older reports also loaded. Wire it all up into the pushState code as well.
* | Allow any user who sees private checkbox to use itMatthew Somerville2018-07-03-2/+2
|/
* Enable editing of category group in adminDave Arter2018-06-26-0/+6
| | | | Fixes mysociety/fixmystreetforcouncils#275
* add a send login email button to user edit pageStruan Donald2018-06-25-7/+39
| | | | | | | | | Add a button to the user edit page that sends a login token email to the user. Helpful for user support situations where someone is having trouble logging in. Also for situations where you have added a user and want to get them logged in. Fixes #2041
* Defect type changes must be after category change.Matthew Somerville2018-06-22-7/+10
| | | | | As with priorities, they depend upon the category and so must be looked up after that has been updated.
* Allow inspector to unset priority.Matthew Somerville2018-06-22-2/+6
|
* Use CSV escaping for categories in URLs.Matthew Somerville2018-06-21-3/+7
| | | | | Categories could contain commas, so splitting on comma is not good enough. Let’s escape the fields as if it’s a line in CSV. Fixes #2166.
* send unresponsive details back with category extrasStruan Donald2018-06-20-0/+4
| | | | | | | This allows the mobile app to explicitly detect when a body is unresponsive and display the category_extra text. For mysociety/fixmystreet-mobile#266
* cobrand hook to deny access to pagesStruan Donald2018-06-19-0/+1
| | | | | | | Add a check in the root controller `auto` to a cobrand hook that denies access if it returns true. This goes here so that cobrands and users are set up, which is not the case for `check_login_required`. Used to do things like deny site access unless the user is a superuser.
* Merge branch 'issues/commercial/1038-bromley-tfl-direct'Matthew Somerville2018-06-14-12/+13
|\
| * If single_body_only set, skip contact body check.Matthew Somerville2018-06-14-12/+13
| | | | | | | | This assumes the SendReport code will deal with the issue.
* | Catch errors whilst quote_char is set.Matthew Somerville2018-06-13-27/+32
|/ | | | That way we can make sure we always reset quote_char even if something breaks.
* include automated field when editing contactsStruan Donald2018-06-11-0/+2
| | | | | | | | Display fields that are automatically filled in the contact editing form otherwise the data is lost. Also include the automated field in the form. Fixes #2136
* Fix issue displaying anonymous account email.Matthew Somerville2018-06-07-5/+10
|
* error on bad update ids passed to contact formStruan Donald2018-06-05-3/+11
| | | | | Return an error if an id for either a hidden update or one not associated with the problem id is passed to the contact form.