aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
Commit message (Collapse)AuthorAgeLines
* Version 2.6.v2.6Matthew Somerville2019-05-03-0/+2
| | | | | Include the usual generate new .pot file, gettext-merge, push to Transifex, pull from Transifex step.
* Custom layout for admin user permission checkboxesZarino Zappia2019-05-02-0/+1
|
* Use REQUEST_URI, not PATH_INFO, to infer path.Matthew Somerville2019-04-24-0/+1
| | | | | 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-0/+1
|
* [Open311] Ensures non_public/hidden reports aren’t visible at /open311Dave Arter2019-04-23-0/+1
|
* Merge branch 'open311-better-get-error'Matthew Somerville2019-04-05-0/+1
|\
| * [Open311] Factor GET/POST calls together.Matthew Somerville2019-04-05-0/+1
| | | | | | | | This means GET errors will give better output.
* | Fix superusers creating anonymous reports.Matthew Somerville2019-04-05-0/+1
|/
* allow customisation of email header image fileStruan Donald2019-04-02-0/+2
| | | | | Add a setting for the name of the image file used in the email header so cobrands can override it
* Fix extra question display when only one category.Matthew Somerville2019-03-27-0/+1
| | | | | If the site only has the one category, it was being preselected but the extra attribute questions were not being shown.
* Stop category_change firing more than it should.Matthew Somerville2019-03-27-0/+1
| | | | | | | | | | Previously, when update_pin was called, category change events were fired: 1. if category wasn't blank, 2. if category groups were enabled, and 3. if category groups were enabled, a group was selected, and a category was not. Now we sort out everything inside the category_groups setup function, only triggering a change event once, at the end.
* Allow things to reset if "Pick a category" picked.Matthew Somerville2019-03-27-0/+1
| | | | | This is most noticeable with category groups, where changing the parent would leave visible any asset/attribute questions.
* Stop filter category overriding chosen category.Matthew Somerville2019-03-27-0/+1
| | | | | | If you had one filter category selected, clicked the map (category auto pre-selected), changed the category, and clicked the map again, it would re-select the filter category, not the changed category.
* Check better if extra question has values.Matthew Somerville2019-03-12-0/+1
| | | | | If an Open311 server returned an empty set of values, it was possible for this template to then display a set of empty dropdown options.
* [Open311] Proper bodies check for sending updates.Matthew Somerville2019-03-12-0/+1
| | | | | Otherwise running on a site where one body ID is a substring of another, comments can get processed for the wrong body.
* Show all Open311 extra fields in edit admin.Matthew Somerville2019-03-07-0/+1
| | | | Otherwise any such fields are lost upon a manual edit.
* Make sure raw RABX column is utf8-encoded.Matthew Somerville2019-03-06-0/+1
| | | | | | | | | | | | Without doing this, a call to e.g. $contact->set_extra_fields(@meta) in PopulateServiceList.pm, with an unchanged meta that contains some Unicode values, can write to the database (and cause an unneeded row in the history table), because the column from the database is UTF-8 decoded, whilst the new text is UTF-8 encoded. It looks like an attempt was made in filter_from_storage to fix this issue, but the column comparison for marking a column as dirty takes place without this being called.
* Merge branch '2411-checkbox-gap'Matthew Somerville2019-03-05-0/+1
|\
| * Improve inline checkbox spacing.Matthew Somerville2019-03-04-0/+1
| | | | | | | | | | | | | | | | | | | | | | Reduce the space between checkbox and label, so the text isn't lost if the page is zoomed in. Fixes #2411. Replace the creator_fixed question with segmented control to match the full questionnaire, and the admin verified checkboxes with inline-text as they need no padding. Having done that, all uses of .inline are now on their own lines, so no post-padding is needed any longer, but we’ll leave some in case of future use.
* | Merge branch 'report-links-same-domain'Matthew Somerville2019-03-05-0/+1
|\ \
| * | Use relative report links where possible.Matthew Somerville2019-03-05-0/+1
| |/ | | | | | | | | | | | | | | | | | | On some UK council cobrands, some reports listed might not have been sent to that council, so links to those must go to the national site. However, using absolute URLs for all these reports means that sometimes you change domain when you don't need to (eg. if you’re on osm.fixmystreet.com or an aliased version of the site), which can cause confusion. State when we’re happy to use a relative link (ie. web-facing report links, not emails, or share links) and do that when we can.
* / Default to unchecked for default_show_name.Matthew Somerville2019-03-04-0/+8
|/
* Duplicate suggestion UI when reporting problems.Zarino Zappia2019-02-25-0/+3
| | | | | | | | | | | | | | | | | | The previously staff-only fixmystreet.set_up.manage_duplicates() has been promoted from staff.js to its own file so that we can use it to display the duplicate suggestions on the `/report/new` form. render_duplicate_list (the old refresh_duplicate_list) no longer filters or slices the reports_list returned by the ajax call, since it turns out the server handles all of that (`sub _nearby_json` in `Report.pm` and `sub nearby` in `Nearby.pm`). Since the expandable list items include the "fancybox" image previews, the fancybox CSS now has to be included in the `/report/new` page head, hence the addition of "photo-js.html" in `fill_in_details.html`. The “Get updates” flow reuses the same JavaScript that handles the submission of the "Get updates" drawer at the bottom of around pages.
* Don't ask for email on alert signup if logged in.Matthew Somerville2019-02-21-4/+5
| | | | | | | The “Get updates” flow on a report page, if logged in, was showing an input label but no input field (because one is not needed), but then on submission asking for your email address. Add missing name on submit button to fix this.
* Merge branch '2397-show-old-url-fix'Matthew Somerville2019-02-18-0/+1
|\
| * Add parameter to URL when “Show older” clicked.Matthew Somerville2019-02-14-0/+1
| | | | | | | | | | The behaviour should be the same whether “Show older” or “Show older reports” is clicked, but only the latter was updating the URL.
* | Allow user to be associated with multiple areas.Matthew Somerville2019-02-14-0/+1
|/ | | | | | Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection.
* Better working of /fakemapit/ under https.Matthew Somerville2019-02-11-0/+1
| | | | | | If no MAPIT_URL is provided, MapIt lookups default to /fakemapit/ at the same host. But that host might already be set up for HTTPS, so port might be 443.
* Merge branch '2242-automatic-permalink'Matthew Somerville2019-02-05-0/+2
|\
| * Update URL whenever map moves, using replaceState.Dave Arter2019-02-04-0/+2
| | | | | | | | | | | | Fixes #2242. Co-authored-by: Matthew Somerville <matthew@mysociety.org>
* | Merge branch 'fix-code-starting-underscore-display'Matthew Somerville2019-02-05-0/+1
|\ \
| * | Allow Open311 codes starting with ‘_’ to function.Matthew Somerville2019-02-04-0/+1
| | | | | | | | | | | | | | | | | | Template Toolkit treats keys starting with ‘_’ as private and does not expose them. It is possible for an Open311 server to return fields starting with an underscore, and we want to use those in the template.
* | | Make front page cache time configurable.Matthew Somerville2019-02-04-0/+2
| |/ |/| | | | | | | Add a configuration variable to use for the front page stats/ recent list, plus the max-age of `/reports`.
* | Make sure dropdown index numbers are updated too.Matthew Somerville2019-02-04-0/+1
|/
* Add CSRF and time to contact form.Matthew Somerville2019-02-01-0/+1
|
* Make staff JavaScript more self-contained.Matthew Somerville2019-01-29-1/+2
| | | | So it can run even when fixmystreet.js is not loaded.
* Allow searching for <email> in admin.Matthew Somerville2019-01-29-0/+1
|
* Fix saving of inspect form data offline.Matthew Somerville2019-01-29-0/+1
|
* Spot moderation conflicts.Matthew Somerville2019-01-25-0/+1
| | | | | If someone tries to moderate after someone else has, re-show the form and an error.
* Merge branch 'allow-state-moderation'Matthew Somerville2019-01-16-3/+4
|\
| * Allow state editing via moderation.Matthew Somerville2019-01-16-3/+5
| | | | | | | | | | If a state is passed in (on a cobrand), update problem state and add a comment to record this (as state changes are updates not moderations).
* | Include moderation history in report updates.Matthew Somerville2019-01-16-0/+2
|/ | | | | | If the user has moderating permission, or a cobrand allows the viewing of moderation history, show moderation history within the updates on a report page.
* Remove any use of `my $x if $foo`.Matthew Somerville2019-01-14-0/+1
| | | | | | | | As perlsyn says, "NOTE: The behaviour of a `my`, `state`, or `our` modified with a statement modifier conditional or loop construct (for example, `my $x if ...`) is undefined. The value of the `my` variable may be `undef`, any previously assigned value, or possibly anything else."
* Delete cache photos upon photo moderation.Matthew Somerville2019-01-10-0/+1
|
* Check cached reports have photos before showing.Matthew Somerville2019-01-10-0/+2
|
* add private only report filterStruan Donald2019-01-04-0/+1
|
* [Open311] handle non_public field when fetching requestsStruan Donald2019-01-04-0/+1
| | | | | | | | | If there is <non_public>1</non_public> tag in an incoming service request then set the created report to non_public.
* Version 2.5.v2.5Matthew Somerville2018-12-21-6/+7
|
* Show all questionnaire responses lacking updates.Matthew Somerville2018-12-20-0/+1
| | | | | | Since questionnaire responses were recorded on email link click, we should have been showing those that reopened or fixed reports, not just steady-state "Still open" ones.
* Improved report/update display on contact form.Matthew Somerville2018-12-18-0/+1
|