aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
Commit message (Collapse)AuthorAgeLines
...
* [Zurich] Fix 500 error when editing superusersDave Arter2016-12-06-1/+1
| | | | | | | | | | | | The Zurich::admin_type function was setting $c->stash->{body}, meaning that when trying to edit a superuser the 'fetch_contacts' function wasn't being called, causing an "Can't call method "all" on an undefined value" error as $c->stash->{live_contacts} wasn't ever being set. Fixed by changing the conditional to simply determine whether fetch_contacts needs to be called. Included a regression test that meant a small addition to the MapItZurich mock.
* Better path for showing config git version.Matthew Somerville2016-12-02-1/+1
| | | | | | The default cobrand does not have a template directory, so the directory change to it was not working. Use the root directory of the repository instead.
* Update problem lastupdate column on inspect save.Matthew Somerville2016-12-02-0/+1
|
* Always return arrayref from bodies_str_ids.Matthew Somerville2016-11-29-1/+1
| | | | Prevents potential odd-element hash in e.g. response_priorities.
* [UK] Include specific domain in user search.Matthew Somerville2016-11-25-4/+13
| | | | | This deals with a bootstrapping issue of adding new admin users that haven't yet interacted with the system.
* [Zurich] Fix accidentally hidden category extra fieldsDave Arter2016-11-24-0/+1
|
* Don't double-decode strftime output.Matthew Somerville2016-11-22-5/+6
| | | | | As with d3d0ab6d, we need to only decode_utf8 strftime output that has not already been decoded, to prevent errors in Perl 5.20+.
* [Bromley] Fix map tiles.Matthew Somerville2016-11-18-42/+15
| | | | | The change to remove inline JavaScript stopped the Bromley-specific tiles from working. Put them back with an extra JavaScript file.
* [UK] Hide usrn/asset_id Open311 fields.Matthew Somerville2016-11-11-1/+15
|
* Merge branch 'issues/forcouncils/99-sorting'Matthew Somerville2016-11-04-22/+63
|\
| * Add sort order options to list pages.Matthew Somerville2016-11-04-22/+63
| | | | | | | | | | | | | | | | Includes newest, oldest, least/most recently updated, and most comments. The default remains the same, which is last updated on /reports, and newest on /my and /around (the latter plus not-in-view sorted-by-distance ones).
* | Merge branch 'issues/forcouncils/116-inspect-show-bug'Matthew Somerville2016-11-04-4/+2
|\ \ | |/ |/|
| * Only return active shortlisted user for a problem.Matthew Somerville2016-10-28-4/+2
| |
* | Merge branch '1544-category-change-leave-update'Matthew Somerville2016-11-01-0/+29
|\ \
| * | Leave a public update when admin changes category.Matthew Somerville2016-10-28-0/+11
| | |
| * | Add ability for admin users to italic updates.Matthew Somerville2016-10-28-0/+18
| |/
* | Pre-filter map pages if user has categories assignedDave Arter2016-10-31-0/+15
| | | | | | | | | | This pre-filters the 'all reports' link in the main nav and the /around page reached via the front page postcode form
* | Add UI for assigning categories to a user in adminDave Arter2016-10-28-0/+27
|/ | | | | - A user can be assigned to any number of its body's categories - The category ids are stored as a list in the user's extra field
* Error if logged-in user visits admin without permission.Matthew Somerville2016-10-26-1/+4
| | | | | This is less confusing than redirecting to /auth and then to /my (as they're logged in). Fixes #1566.
* Show admin user edit errors.Matthew Somerville2016-10-26-4/+4
| | | | Fix title if error in adding user. Fixes #1510.
* Redirect to correct cobrand when category changed.Dave Arter2016-10-26-13/+11
|
* Resend report if changing category changes body.Dave Arter2016-10-26-3/+7
|
* Merge branch 'issues/forcouncils/67-mop-up'Matthew Somerville2016-10-24-1/+3
|\
| * Hide confirmed column if all categories confirmed.Matthew Somerville2016-10-24-1/+3
| |
* | Merge branch 'issues/forcouncils/98-inspect-straight'Matthew Somerville2016-10-24-19/+13
|\ \
| * | Have report page show inspect form if available.Matthew Somerville2016-10-24-19/+13
| |/
* | Merge branch 'reports-area-as-a-hole'Matthew Somerville2016-10-24-0/+11
|\ \ | |/ |/|
| * Add server-side /mapit proxy.Matthew Somerville2016-10-21-0/+11
| |
* | Use default link zoom for all map types.Matthew Somerville2016-10-21-30/+17
|/ | | | [Bristol] Use more zoomed-in default link zoom.
* Merge branch '1543-reports-page-fixes'Matthew Somerville2016-10-21-8/+49
|\
| * Update pagination when status/categories changed.Matthew Somerville2016-10-18-3/+19
| |
| * Add ajax pin fetching to reports/my pages.Matthew Somerville2016-10-14-6/+31
| | | | | | | | | | This matches the behaviour on /around, and prevents a refresh when changing the state or category filters.
* | Merge branch 'issues/forcouncils/100-fix-template-list'Matthew Somerville2016-10-20-4/+6
|\ \
| * | Fix list of response templates for a problem.Matthew Somerville2016-10-20-4/+6
| |/ | | | | | | | | Instead of returning all templates for the problem's body, return those for the problem's category (or with no category).
* | Clarify category behaviour for response prioritiesDave Arter2016-10-19-1/+1
| | | | | | | | | | - Priorities with no categories selected are available to all categories - Display active categories in response priorities table
* | Add ‘description’ field to ResponsePriority modelDave Arter2016-10-19-2/+5
|/ | | | Used internally to provide more details about when a priority is applicable.
* Merge branch 'issues/forcouncils/95-multi-select-list-filters'Matthew Somerville2016-10-13-45/+62
|\
| * Allow multiple selections in report list filter.Zarino Zappia2016-10-13-40/+57
| | | | | | | | | | | | This lets people filter by multiple categories or states. It uses our jQuery multi-select plugin to turn the <select multiple>s into little overlay lists of checkboxes. HTML5 history is also supported.
| * Default run-tests with no arguments to run all.Matthew Somerville2016-10-13-5/+5
| |
* | Show shortlist owner on report page.Matthew Somerville2016-10-11-0/+12
| |
* | Adding report to shortlist removes from others.Matthew Somerville2016-10-11-5/+33
| |
* | Fix bug in fetching existing shortlisted report.Matthew Somerville2016-10-11-1/+1
|/ | | | | It would always create a new report rather than return an existing one, if present.
* Determine location before possible redirect.Matthew Somerville2016-10-04-1/+1
| | | | | | If you changed the around filters on a URL with latitude/longitude, the co-ordinates were not passed through as determine_location needed to be called first.
* Don't show deleted bodies on /reports.Matthew Somerville2016-10-04-1/+3
|
* Merge branch 'issues/forcouncils/36-mobile-inspector-improvements'Matthew Somerville2016-10-04-25/+52
|\
| * Handle extra field updates on report inspect pageDave Arter2016-10-04-23/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to make sure the extra metadata stored on a problem is kept in sync with the requirements of the category the report is in. Thus, if a report is moved to a category that collects extra metadata then the appropriate input fields should be shown so the inspector can enter the data. This commit shows the category extra HTML elements for every selectable category on the inspector page hiding those that don't apply to the selected category. JS is used to show/hide the extra fields when the category dropdown is changed. A consequence of the implementation is that any extra metadata from the original category is lost when the category is changed. Some thought was given to storing the old values elsewhere in the problem's extra field but I decided against this for the time being. For mysociety/fixmystreetforcouncils#45
| * Remove separate “Public update” form sectionZarino Zappia2016-10-04-1/+1
| | | | | | | | | | | | Inspectors can now tick the optional “Save with a public update” checkbox, to reveal the “Public update” textarea. This means there is no longer a need for two separate submit buttons.
| * Restructure Inspect form into logical sectionsZarino Zappia2016-10-04-1/+1
| | | | | | | | | | | | | | | | IDs and locations at the top, then location-related actions (including a new “navigate to this problem” button), then status and category inputs (since these can have an effect on how we display the rest of the form), then any status/category-related inputs, and finally inputs for internal details like priority and traffic management.
| * Factor out contains_or_lacks test function.Matthew Somerville2016-09-29-0/+10
| |
* | Include CORS cross-origin header in RSS output.Matthew Somerville2016-09-27-0/+1
| |