aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
Commit message (Collapse)AuthorAgeLines
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-1/+10
| | | | | | | | | Historically, the extra field has been used in two different ways by different cobrands, both as a list (e.g. Open311 category fields) and a hash (e.g. the Zurich cobrand). This commit consolidates usage, adding an API to make use of the field easier and always returning a hash for the code to use. Fixes #1018.
* [fixmystreet.com] Remove special NI code.Matthew Somerville2015-03-16-82/+70
| | | | | This is now handled by normal bodies in the admin. In order to remove references in send_reports, tidy up (unused) EmptyHomes code a bit.
* [UK] Output NI grid references to NI councils.Matthew Somerville2015-02-20-10/+14
|
* Switch easting/northing output to one line.Matthew Somerville2015-02-16-4/+1
| | | | | This is more friendly for e.g. copy and pasting by someone using the Dynamics CRM software. Fixes #997.
* Create timezone objects only once at startup.Matthew Somerville2015-02-13-50/+8
| | | | | | Cache a DateTime::TimeZone::Local object, so that in an environment where /etc/localtime is a copy of a timezone file, we don't repeatedly walk all the timezone files to find the matching one.
* Merge branch 'remove-need-for-site-title'Matthew Somerville2015-01-19-2/+0
|\
| * Move site_title function to site-name web templateMatthew Somerville2015-01-19-2/+0
| | | | | | | | | | | | | | This matches the email template behaviour, and makes it much easier to override without requiring a cobrand package file. Fixes #979.
* | Tidy up of bin directory.Matthew Somerville2015-01-19-5/+0
|/ | | | | Remove some unneeded scripts, move others to cobrand-specific directories.
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-10/+4
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* [Harrogate] custom form fieldsHakim Cassimally2015-01-08-0/+4
| | | | | | | | | | | | | | Requires previous (generic) commit to prevent information only categories (e.g. Dead animals message) from displaying a spurious textbox. Also support for sending these custom fields by email: Requires a hook in RS::Problem method, as by default, only a restricted number of hard-coded fields are send in the email. (And the template language is pseudo-PHP so we can't simply pass in the whole data-structure.)
* refactor repeat code into get_email_templateHakim Cassimally2014-08-14-21/+3
|
* Tests for moderationHakim Cassimally2014-08-14-1/+3
|
* Report moderationHakim Cassimally2014-08-13-14/+259
| | | | | | | | | | | - redaction marked with [...] - of report and comments - stores original data - uses a single form, on the report/_main view - requires additional permissions (user_body_permissions) - Hide report functionality - Moderation notification/contact form - Moderation writes to admin_log
* Link through from all reports page to sub categoriesStruan Donald2014-07-01-2/+2
| | | | | | | | Add a type parameter to the /reports/body page to restrict list by problem category. Only link to report categories that have entries. Fixes #798
* Merge branch '700-auto-emails'Matthew Somerville2014-05-16-4/+11
|\
| * Update all email templates with new text.Myfanwy Nixon2014-05-16-0/+2
| | | | | | | | And FixMyStreet.com specific open questionnaire page.
| * Only return html from problem->body if we have contextStruan Donald2014-05-16-1/+1
| | | | | | | | | | this means we can use this in email templates and get the correct non html text back even if AREA_LINKS_FROM_PROBLEM is true
| * Set site_name and signature email variables for alertsStruan Donald2014-05-16-3/+8
| | | | | | | | so we can include the name of the site non TT templated emails
* | Revert "Remove Barnet check for external_id display"Dave Arter2014-05-16-2/+3
| | | | | | | | | | | | | | This reverts commit 87451200e32a57947bb7b9facc4efb4f6644973b. Reports that were sent when the Barnet integration was in place still have an external_id which should be displayed.
* | Merge branch 'issues/commercial-503-centro-email'Steven Day2014-05-01-0/+2
|\ \
| * | Fix missing subcategory_line that was breaking email sendingSteven Day2014-05-01-0/+2
| | | | | | | | | | | | | | | | | | subcategory_line is optional in seesomethingsaysomething, so we need to set it to something (a blank line is what I've chosen) otherwise email sending breaks when it tries to template up the email message
* | | Remove Barnet check for external_id displayDave Arter2014-04-25-3/+2
| |/ |/|
* | Add Cobrand config to include update date in email alertsStruan Donald2014-04-08-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | This is useful for sites where the updates aren't published on the site so you need a bit more context in the email alerts. Add inlude_time_in_update_alerts to default cobrand, off as default If this is set then the date is added after the name string in the email, passing in 'alert' as the type to dt_prettify in order to allow the cobrand to format it accordingly. This does require pulling out the alert confirmed time from the database in the send_alerts code where it wasn't before.
* | Update old-style open311 script to use bodies.Matthew Somerville2014-04-07-9/+11
| | | | | | | | Add some comments to the top of the open311 bin scripts.
* | Change default email indentation to none.Matthew Somerville2014-03-17-2/+0
| | | | | | | | | | This is very old, no-one seems to want/need it any more, and more than one reuser does not want it. Fixes #715.
* | Merge remote branch 'origin/sweden-rebase'Matthew Somerville2014-03-11-0/+2
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: bin/update-schema locale/sv_SE.UTF-8/LC_MESSAGES/FixMyStreet.po perllib/FixMyStreet/DB/Result/Body.pm
| * | Add `external_url' column to `body' table.Jon Kristensen2014-03-11-0/+2
| | |
| * | Remove hardcoded Swedish translationsJon Kristensen2014-03-11-3/+3
| | |
| * | Updated translations manuallyJonas Oberg2014-03-11-3/+3
| | |
* | | Make sure language is set early enough in email alert loop.Matthew Somerville2014-02-26-1/+2
| | | | | | | | | | | | | | | The call to set_lang_and_domain needs to happen before the first string is translated (the report state).
* | | Make sure bodies returned in consistent order.Matthew Somerville2014-02-25-1/+4
| | |
* | | [Bromley] Reduce update character limit to 1750.Matthew Somerville2014-01-30-4/+6
| | | | | | | | | | | | Following on from f117167 (and fixing comment from that commit).
* | | [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!
* | | 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-1/+1
| | | | | | | | | | | | | | | | | | Remove from admin_base_url (which wraps config vars like {ADMIN_,}BASE_URL) and add to places in code which aren't expecting it.
* | | Reported via mobile device rather than byStruan Donald2013-10-02-4/+4
| | | | | | | | | | | | Fixes #586
* | | Make character limit translation string more genericChris Mytton2013-09-26-2/+2
| | |
* | | [Oxfordshire] Validate reports are < 1700 charactersChris Mytton2013-09-25-3/+8
| | |
* | | 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
* | | Merge branch 'zurich-mark-external-addresses-deleted'Chris Mytton2013-09-12-2/+4
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: t/cobrand/zurich.t
| * | | [Zurich] Update DB/Result/Body.pm schemaChris Mytton2013-09-10-2/+4
| | | |
* | | | Merge branch 'rabx-column-refactor'Chris Mytton2013-09-12-105/+108
|\ \ \ \ | |/ / / |/| | |
| * | | Use RABXColumn in remaining models that serialize some columnsEdmund von der Burg2013-09-10-83/+7
| | | |
| * | | Switch Token over to use RABXColumn and test that changes to the col behave ↵Edmund von der Burg2013-09-10-22/+3
| | | | | | | | | | | | | | | | as expected
| * | | Add RABX column code and testsEdmund von der Burg2013-09-10-0/+98
| |/ /
* / / Update DB/Result/* with latest DBIx::Class::Schema::LoaderChris Mytton2013-09-10-42/+42
|/ / | | | | | | | | | | | | | | | | Version 0.07027 of DBIx::Class::Schema::Loader introduced some changes to the way it generates schemas. > PostgreSQL WARNING: the default for on_delete/on_update attributes for > belongs_to relationships is now 'NO ACTION' not 'CASCADE! The default > for is_deferrable is now 0 not 1.
* | Spell out all "marked as %s" strings.Matthew Somerville2013-09-05-6/+2
| | | | | | | | | | As doing interpolation from a database state field is not great for translation. Fixes #391.
* | Changed hardcoded URL in Problem.pm to be using variable from general.yml ↵Matthew Somerville2013-08-30-1/+2
| | | | | | | | instead.
* | Check for abuse in more places.Matthew Somerville2013-06-19-0/+7
| |
* | Consolidate sending backoff for different types of sender.Matthew Somerville2013-05-02-12/+0
| |