aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
Commit message (Collapse)AuthorAgeLines
* Make sure bodies returned in consistent order.Matthew Somerville2014-02-25-1/+4
|
* Add links to user survey to emails, front page and confirmation pagesStruan Donald2014-02-18-0/+14
| | | | | | | | Use the cross sell function to put an 'advert' for the survey on the various confirmation pages Create new alert email templates for fixmystreet co-brand so we can include the survey link on those alone All as one commit for ease of reverting when the survey is done.
* Send staging reports to reporter, not contact address.Matthew Somerville2014-01-30-1/+1
| | | | Fixes #653.
* Don't update problem state from service request if currently hidden.Matthew Somerville2014-01-30-1/+3
|
* [Bromley] Reduce update character limit to 1750.Matthew Somerville2014-01-30-4/+6
| | | | Following on from f117167 (and fixing comment from that commit).
* Default lastname of '-' if none found.Matthew Somerville2014-01-14-0/+1
|
* [Bromley] Reduce detail field character limit to 1750Chris Mytton2014-01-14-2/+3
| | | | | | | | "The length of 2000 characters is causing some issues in the underline back office application." Updated to include a comment making it (hopefully) clearer which council this is for - thanks @davewhiteland!
* [Zurich] admin template to respect closed_overdueHakim Cassimally2013-12-20-2/+35
| | | | | | | | | | | | | This value is now cached, but the template calls the function, calculating it anew, so for old reports (closed within SLA) the problem_row.html template showed these as overdue. Instead, we point the template at a function which first checks the cached value. (Attempting to roll this functionality into the .overdue() method itself caused a fair amount of collateral test breakage, and it seems safest to extract the caching function for now.) Closes https://github.com/mysociety/FixMyStreet-Commercial/issues/462
* Merge branch 'issues/commercial/461-zurich-export-hidden-stats'Hakim Cassimally2013-12-17-1/+1
|\
| * [Zurich] stats export include 'hidden'Hakim Cassimally2013-12-17-1/+1
| | | | | | | | | | | | | | | | | | | | See https://github.com/mysociety/FixMyStreet-Commercial/issues/461 Again, we just need to substitute the %params line (which elides hidden reports) for the less restrictive %date_params. This commit includes very basic tests for the previously untested ?export=1 functionality.
* | Test for admin_base_url in RS::ProblemHakim Cassimally2013-12-17-1/+6
| | | | | | | | | | Test that the slash is added in correct place (the base URL should not have its own trailing slash).
* | Rationalise trailing slashes from admin_base_urlHakim Cassimally2013-12-11-5/+5
|/ | | | | | Remove from admin_base_url (which wraps config vars like {ADMIN_,}BASE_URL) and add to places in code which aren't expecting it.
* [Zurich] also allow hidden reports for closed_overdueHakim Cassimally2013-12-10-1/+1
|
* [Zurich] fix moderated statistics to include hiddenHakim Cassimally2013-12-10-1/+1
| | | | | | As per comments after testing mysociety/FixMyStreet-Commercial#459, the business logic of the actual state changes is fine, but the stats do also then need to include hidden records.
* [Zurich] log admin changesHakim Cassimally2013-12-09-6/+13
| | | | | To allow us to infer additional stats changes requirements such as in mysociety/FixMyStreet-Commercial#459 better in future.
* [Zurich] test /admin/statsHakim Cassimally2013-12-09-0/+1
| | | | | | | First test that this page is only available to superuser. Then test that the moderated and fixed stats are doing something that is (hopefully) the spec in mysociety/FixMyStreet-Commercial#459
* [Zurich] log details for closed_overdueHakim Cassimally2013-12-09-2/+21
| | | | | | | | | | | | | | | see mysociety/FixMyStreet-Commercial#459 the new requirement is for "Innerhalb von fübeitstagen abgeschlossen" - a report is dealt with (abgeschlossen) as soon as the public state is Beantwortet (db: fixed - council or closed) or Unsichtbar (en: Invisible, db: hidden). Have added this as {closed_overdue} but have retained the logic for {subdiv_overdue} logged in the %extra hash for now, in case it is needed. Note: as per Matthew "as with confirmed/in progress this should be 6 - it's five days from moderation so is most simply just done as being six since creation"
* [Zurich] quash undef warning on date-checkHakim Cassimally2013-12-09-1/+1
|
* [Zurich] report is moderated on first status changeHakim Cassimally2013-12-09-7/+14
| | | | | | | mysociety/FixMyStreet-Commercial#459 - we move "confirmed" to being a moderated-but-not-complete state, and run the check for ->overdue also on changing status from 'unconfirmed' (but only the first time, so only if $extra->{moderated_overdue} isn't already set.
* Suppress 'once' warningHakim Cassimally2013-12-09-2/+5
|
* Remove cached photos if hidden in admin interface.Matthew Somerville2013-11-20-1/+9
| | | | | Use the internal hash URL of the photo so that it can still be seen in the admin interface.
* Version 1.3.v1.3Matthew Somerville2013-11-12-2/+2
|
* Include version number on admin config page.Matthew Somerville2013-11-12-0/+7
|
* Don't display categories for deleted bodiesChris Mytton2013-11-11-1/+1
| | | | | | | | | | | | When a body has been marked as deleted (currently only exposed in the Zurich cobrand's admin) the categories for that body should not be available on the report_new form. Prior to this change there was an error running the 'zurich-overdue-alert' script, because it wasn't expecting the 'bodies_str' field to have any entries in the format 'x|y,z', this prevents this problem from happening in the future (though it doesn't fix any existing entries with this issue).
* If only one cobrand given, always use it.Matthew Somerville2013-11-07-2/+13
| | | | | | | | | If the ALLOWED_COBRANDS configuration variable only contains one entry (and also work if it's a string rather than a list), always use that cobrand, no matter what the hostname is. The example Vagrantfile no longer needs the configuration changes at all.
* Remove trailing whitespaceAndrew Black2013-11-07-1/+1
|
* Create a single date fields and parse as DD/MM/YYYYAndrew Black2013-11-07-17/+8
|
* remove FixMindelo header, override title insteadDave Whiteland2013-11-05-0/+2
| | | | | The staging banner didn't fit, and .wrapper{position:relative} was breaking things :-( Easier to keep it simple, drop the header and just set the title in the Cobrand module instead.
* Merge branch 'multiple_emails_per_contact'Struan Donald2013-11-04-3/+13
|\
| * change email sender to handle multiple emails per contactStruan Donald2013-10-28-3/+13
| | | | | | | | | | splits emails on comma WIP
* | Merge branch '389-report-search-ref' of ↵Matthew Somerville2013-11-04-0/+5
|\ \ | |/ |/| | | https://github.com/andylolz/fixmystreet into andylolz-389-report-search-ref
| * Include external_id in admin reports search.Andy Lulham2013-10-17-0/+5
| | | | | | | | Fixes #389
* | Set confirmed timestamp on any admin unconfirmed state change.Matthew Somerville2013-10-25-1/+1
| | | | | | | | This fixes #527.
* | More accurate config overriding for Zurich.Matthew Somerville2013-10-24-1/+10
| |
* | [Zurich] Remove phone number requirement for mobile app reportsChris Mytton2013-10-21-1/+5
|/ | | | | | | | | | | | | | | | | The phone number was made mandatory in #541. To make this change compatible with older versions of the mobile app I've had to drop server side validation of the phone number for requests that come in from mobile apps. To determine if it's a mobile request I'm checking the 'service' parameter in the request, which is only set in requests from the mobile apps [1]. The phone validation will still happen client side for the newer versions of the app, and the web app will continue to work with the server side validations. [1] https://github.com/mysociety/zurich_mobile/blob/1fec2bc21dad9326819105cdbf5d47183e7503ba/www/js/models.js#L75
* Merge branch 'master' into oxfordshire-usability-recommendationsChris Mytton2013-10-16-12/+41
|\
| * [Zurich] Add user email address validation to the adminChris Mytton2013-10-15-0/+10
| | | | | | | | Closes mysociety/FixMyStreet-Commercial#426
| * Rename Default Area to Everywhere.Matthew Somerville2013-10-11-2/+2
| |
| * Add Google OpenLayers-based map layer.Matthew Somerville2013-10-11-0/+22
| |
| * Reported via mobile device rather than byStruan Donald2013-10-02-4/+4
| | | | | | | | Fixes #586
| * Don't need this check (plus it called the wrong function).Matthew Somerville2013-09-30-4/+1
| |
| * Make character limit translation string more genericChris Mytton2013-09-26-2/+2
| |
* | Merge branch 'master' into oxfordshire-usability-recommendationsChris Mytton2013-09-25-4/+19
|\|
| * [Oxfordshire] Validate reports are < 1700 charactersChris Mytton2013-09-25-3/+8
| |
| * Add a view-configuration admin page.Matthew Somerville2013-09-19-1/+11
| | | | | | | | Fixes #561.
* | Merge branch 'master' into oxfordshire-usability-recommendationsChris Mytton2013-09-13-194/+911
|\|
| * Have a central config-override function.Matthew Somerville2013-09-13-0/+36
| | | | | | | | You only need to pass in the values you wish to be different.
| * mechanism to stop app store tests being sentStruan Donald2013-09-12-1/+5
| | | | | | | | | | | | In order to allow the iOS app to be tested in the app store we need to allow the user to create a report but we don't want to send it. To allow this hide reports with a specific title during send_reports
| * Add fullsize photo to Photo controllerChris Mytton2013-09-12-6/+8
| | | | | | | | | | This is used in the Zurich admin to view a full size version of the image before it has been made public.
| * Merge branch 'zurich-optional-problem-rejected-email'Chris Mytton2013-09-12-1/+1
| |\ | | | | | | | | | | | | Conflicts: t/cobrand/zurich.t