| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
| |
If you had no session cookie, started reporting a problem, logged in
through that process, you would then get a CSRF error as the token
had been created before the session was.
|
| |
|
| |
|
|
|
|
|
| |
It was being treated as a new report and showing errors, rather than
showing you the same page with updated filters. Fixes #1422.
|
| |
|
|
|
|
| |
Move most index page statistics to their own pages.
|
|\ |
|
| |
| |
| |
| | |
Fixes #1286.
|
|/
|
|
|
|
|
|
|
|
|
| |
This rearranges the moderation UI into logical chunks,
and improves the 'revert to original' checkboxes by:
- hiding them unless there's some original text to revert
to
- displaying the text that will be reverted to in the
appropriate input fields when checked.
Part of mysociety/FixMyStreet-Commercial#731
|
| |
|
|
|
|
|
| |
It was possible that rotating an update photo did not remove its cached
copy.
|
| |
|
|\ |
|
| |
| |
| |
| | |
And associated, e.g. nothing references fixmystreet-old-box.js any more.
|
| | |
|
| |
| |
| |
| |
| |
| | |
The app doesn't currently use the unresponsive body data returned
via /report/new/ajax, so make sure it's returned via the category
look up it does make.
|
|\ \ |
|
| | | |
|
| |/
|/| |
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| | |
Store image type along with hash in photo column, and use that when
outputting images / generating URLs. Make sure all public photo URL
generation goes through appropriate functions, and change temp URLs
so the filename can be output directly from the list.
|
|/
|
|
| |
Remove unused body/area ID URL code.
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
There's no need for the IP->country lookup, only used in JavaScript
to display a banner, to require a call to the FixMyStreet server.
|
|/
|
|
|
|
| |
Make sure the unresponsive message shows, if you're in a two-tier area
and one of the areas is marked as unresponsive, for all the categories
of that area.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The following modules had bugs that have been fixed for working in
recent perls:
* List::MoreUtils
* Guard
* PadWalker
* aliased
* URI
* Convert::NLS_DATE_FORMAT
The CGI module was removed from core in 5.20, so include it in the
snapshot (I don't think it's actually used, but is a dependency).
"{" needs to be escaped in regular expressions, and ~~ should not be
used.
Fix some tests that expect e.g. a certain hash ordering, to use sorted
output or better comparisons.
|
|
|
|
|
|
|
|
|
| |
Perl 5.20 introduced a version of Encode that errors on decoding already
decoded content (rather than returning the same string). Whilst this can
be taken as a bug in our code (although the decoding exists because some
versions of FastCGI silently UTF-8 encode the content), in the changelog
for Perl the only reference to this change is the line: "Encode has been
upgraded from version 2.49 to 2.60.".
|
|
|
|
|
| |
This variable can then be used by e.g. extra_name.html to know what form
it is on.
|
|
|
|
|
|
| |
This adds a new cobrand variable, report_form_extras, which contains a
list of extra fields that will be saved in the 'extra' metadata of the
report. Fields may optionally be marked as required.
|
|
|
|
|
| |
It is currently only used for processing extra fields (the list, not the
metadata hash) which is really only of relevance to Open311.
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
| |
There might be the odd update alert we are interested in (those not
auto-signed up for as part of report or update creation), but they
will be rare.
|
|
|
|
| |
Thanks to @jonkri for spotting.
|
|\
| |
| |
| |
| |
| | |
Conflicts:
templates/web/base/report/new/fill_in_details_form.html
templates/web/base/report/update-form.html
|
| | |
|
| |
| |
| |
| | |
Makes the flow more like new reporting.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Travis has Cpanel::JSON::XS preinstalled, which means that the build
would fail there, as JSON::MaybeXS would try and upgrade JSON::XS to
version 3 which the snapshot did not contain.
|
|/
|
|
|
| |
Use design of auth/token in generic error, 404, and token server error
pages, and use the same error for too old/ token not found errors.
|
|
|
|
| |
Also adds admin ability to rotate update photos.
|
|
|
|
|
| |
Remove get_photo_params, which only looked at the first photo,
make explicit when we're doing that using `.first`.
|
| |
|
| |
|
|
|
|
| |
Fixes #1305.
|
| |
|
|
|
|
|
| |
92dfeac used an incorrect user column name in the new lookup,
and there was no test to catch the regression.
|
|
|
|
|
|
|
|
|
|
| |
Three file inputs, progressively enhanced with dropzone.
This moves the photo input higher up, so that photos can upload while
you're filling out the form. It standardises and improves photo error
handling.
[fixmystreet.com] Guidance for what photos should and shouldn’t include.
|