| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
| |
Include the usual generate new .pot file, gettext-merge, push to
Transifex, pull from Transifex step.
|
| |
|
|
|
|
|
| |
This fixes an issue with slashes in category names in admin (as
PATH_INFO can't tell the difference between / and %2F).
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| | |
This means GET errors will give better output.
|
|/ |
|
|
|
|
|
| |
Add a setting for the name of the image file used in the email header so
cobrands can override it
|
|
|
|
|
| |
If the site only has the one category, it was being preselected
but the extra attribute questions were not being shown.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This is most noticeable with category groups, where changing the
parent would leave visible any asset/attribute questions.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Otherwise running on a site where one body ID is a substring
of another, comments can get processed for the wrong body.
|
|
|
|
| |
Otherwise any such fields are lost upon a manual edit.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|\ |
|
| |
| |
| |
| |
| | |
The behaviour should be the same whether “Show older” or “Show older
reports” is clicked, but only the latter was updating the URL.
|
|/
|
|
|
|
| |
Update database to store an array of IDs rather than only one;
consequential changes to the admin and the dashboard to allow
selection.
|
|
|
|
|
|
| |
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.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Fixes #2242.
Co-authored-by: Matthew Somerville <matthew@mysociety.org>
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| |/
|/|
| |
| |
| | |
Add a configuration variable to use for the front page stats/
recent list, plus the max-age of `/reports`.
|
|/ |
|
| |
|
|
|
|
| |
So it can run even when fixmystreet.js is not loaded.
|
| |
|
| |
|
|
|
|
|
| |
If someone tries to moderate after someone else has, re-show the
form and an error.
|
|\ |
|
| |
| |
| |
| |
| | |
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).
|
|/
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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."
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
If there is
<non_public>1</non_public>
tag in an incoming service request then set the created report to
non_public.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|