| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
| |
variable is the string 'true' or 'false' from Open311. Store
the original detail so we can reset back to it more easily.
|
|
|
|
| |
The database could return rows in differing orders.
|
|
|
|
|
|
| |
The Exor reference was missed from the previous commit.
For https://github.com/mysociety/fixmystreet-commercial/issues/1876
|
|\ |
|
| | |
|
|/
|
|
| |
For https://github.com/mysociety/fixmystreet-commercial/issues/1876
|
| |
|
|
|
|
|
| |
As it has switched to using category groups, the special subcategory
code needs updating to update the correct variable.
|
|
|
|
|
|
|
| |
Ignore (for Open311-sending purposes) any questions whose code starts
"PCC-", so that it is easier to use the admin to add extra questions,
and move the removal of the extra questions to a more normal location
so answers are not lost when extra fields is reset post-send.
|
|\ |
|
| | |
|
| | |
|
|/
|
|
|
| |
Use verbose for all log output, and debug only for
overriding the should_skip check.
|
| |
|
|
|
|
|
|
|
|
|
| |
Instead of sending off-road flytipping reports to the district, now that
Buckinghamshire is unitary we instead recategorise them into a new email
specific “Flytipping (off-road)” category which is handled in the same
way as other ex-district categories with the borough_email_addresses
cobrand feature, and omitted from the dropdown by the
categories_restriction cobrand method.
|
|
|
|
| |
New unitary branding, and remove County from name.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After this change, you can safely add the TfL body to other councils
(namely the ones surrounding London that include TfL bus stops);
clicking in those councils on other cobrands will have no change, as the
TfL body will be fully ignored on a non-London council, but on the TfL
cobrand it will allow it for e.g. the selection of bus stops outside
London.
It removes the body rather than just all its categories to prevent a "We
do not have details of the other body covering this area" message
appearing.
|
|
|
|
|
|
| |
Checks that the correct bits of the problem's extra fields are sent when
creating the report in Open311, and that extra bits of info are sent
when sending comments to Open311.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Attempting to load the /report/ajax/<id> URL for a problem that
had a public response and wasn't in the ‘external’ state was causing
a crash because the call to FixMyStreet::App::View::Web::add_links
in updates_as_hashref was returning a FixMyStreet::Template::SafeString
that the JSON module didn't know how to serialise.
This commit adds a TO_JSON method to SafeString, and ensures the output
of /report/ajax is JSON-encoded with convert_blessed turned on so the
TO_JSON method is called.
|
|\ |
|
| | |
|
|/ |
|
|
|
|
|
| |
The changes in 27fe9940 to send more P1 emails meant the out-of-hours
email wasn't being correct sent when it should have been.
|
|
|
|
| |
It was using the branding/URL of the site the update was left on.
|
| |
|
|
|
|
|
| |
These categories display a ‘please ring’ message and so
have nowhere to be resent if selected.
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Allows you to hide the banner introduced in 1f43fc9.
Useful when you’re making front-end changes—especially on small
screens—and don’t want the banner getting in the way.
|
| |
| |
| |
| |
| | |
The only exception is when the category change is between two categories
in the same Symology database, in which case we do not want to resend.
|
|/ |
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
| |
district reports
Fixes https://github.com/mysociety/fixmystreet-freshdesk/issues/104
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit checks the RedRoutes WFS layer on tilma to determine if the
point at which a new report is being made is on a TfL red route.
The returned categories are then adjusted accordingly:
- If on a red route, all TfL categories as well as borough categories
specific to street cleaning are returned.
- If not on a red route, all borough categories as well as TfL
categories that don't require a red route are returned.
- This category tweaking doesn't happen on the TfL cobrand, as the JS
handles it by signposting users to fixmystreet.com for borough
reports.
Doing the lookup server side means the app always shows the right
categories to the user and prevents them e.g. sending a borough
flytipping report to TfL.
Fixes https://github.com/mysociety/fixmystreet-commercial/issues/1716
|
|\ |
|
| |
| |
| |
| | |
This also lets it be cobrand specific.
|
| | | |
| \ | |
|\ \ \
| | | |
| | | |
| | | | |
'tfl-report-number-com-submit-link'
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If report made on .com, `body->get_cobrand_handler` does not return TfL
as it covers many bodies. Now we have the body handler, we can use that
instead.
|
| | |/
| | |
| | |
| | |
| | |
| | | |
For an email to somewhere for which the report has a body handler, we
want to use that cobrand's domain for the link - we already are using
their cobrand for the email template, after all.
|
| | |
| | |
| | |
| | | |
We need to check the body the report is sent to for special casing.
|