aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/ResultSet
Commit message (Collapse)AuthorAgeLines
* [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-13/+3
| | | | | | 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.
* 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.
* 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
|
* Merge branch '700-auto-emails'Matthew Somerville2014-05-16-3/+10
|\
| * Update all email templates with new text.Myfanwy Nixon2014-05-16-0/+2
| | | | | | | | And FixMyStreet.com specific open questionnaire page.
| * 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
* | 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
* | 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.
* | 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.
* | 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
| |
* | 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.
* | 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
* | 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
| |
* | Merge remote branch 'origin/zurich'Matthew Somerville2013-02-21-1/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (locale ignored, will rerun .po extraction after to get all changes.) Conflicts: locale/FixMyStreet.po locale/cy_GB.UTF-8/LC_MESSAGES/EmptyHomes.po locale/de_CH.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nn_NO.UTF-8/LC_MESSAGES/FixMyStreet.po templates/web/fixmystreet/report/banner.html templates/web/zurich/faq/faq-de-ch.html
| * | Translate user details in Zurich external email.Matthew Somerville2013-02-20-1/+1
| | |
| * | Allow email indent to be a cobrand parameter.Matthew Somerville2013-02-11-0/+2
| | |
* | | add --debug to CronFns so can run bin/send-reports with debug/diagnosis ↵Dave Whiteland2013-02-19-9/+46
| | | | | | | | | | | | output on the command line, closes #376
* | | Couple of fixes to enable EmptyHomes to send reports again.Matthew Somerville2013-02-13-1/+2
|/ /
* | Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-72/+59
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/open311-populate-service-list bin/send-comments bin/update-all-reports conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/App/Controller/Reports.pm perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/LichfieldDC.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/FixMyStreet/SendReport.pm perllib/FixMyStreet/SendReport/Email.pm perllib/FixMyStreet/SendReport/Open311.pm perllib/Open311/GetServiceRequestUpdates.pm perllib/Open311/PopulateServiceList.pm t/app/controller/report_new.t t/app/controller/rss.t templates/web/bromley/report/display.html templates/web/default/admin/council_contacts.html templates/web/default/common_header_tags.html templates/web/default/dashboard/index.html templates/web/default/front/stats.html templates/web/default/report/_main.html templates/web/default/report/update-form.html templates/web/emptyhomes/index.html templates/web/emptyhomes/report/display.html templates/web/emptyhomes/report/new/councils_text_all.html templates/web/emptyhomes/reports/body.html templates/web/emptyhomes/reports/index.html templates/web/fixmystreet/report/new/fill_in_details_form.html templates/web/fixmystreet/report/update-form.html web/cobrands/fixmystreet/fixmystreet.js web/js/fixmystreet.js
| * | Add some email checking to Zurich test.Matthew Somerville2013-01-31-1/+3
| | |
| * | Don't do login links for alert update emails for Zurich.Matthew Somerville2013-01-17-1/+2
| | |
| * | Split the 'send reports' bit of STAGING_SITE to its own config variable, so ↵Matthew Somerville2013-01-16-1/+1
| | | | | | | | | | | | you can have a dev site that sends reports like normal.
| * | Zurich email alerts.Matthew Somerville2013-01-11-2/+6
| | |
| * | Update database fetching to fetch needed data for previous commit.Matthew Somerville2013-01-08-11/+1
| | |
| * | Front page ignoring unconfirmed, but ordering including null confirmeds.Matthew Somerville2012-12-21-2/+4
| | |
| * | Make sure serialized string is UTF-8 encoded.Matthew Somerville2012-12-21-0/+1
| | |
| * | Created and state columns needed for Zurich.Matthew Somerville2012-12-20-1/+1
| | |
| * | Allow unconfirmed as a visible state in Zurich, adjust front end list/item ↵Matthew Somerville2012-12-19-2/+2
| | | | | | | | | | | | templates to suit.
| * | Allow bodies to span multiple area IDs, and areas can be covered by more ↵Matthew Somerville2012-12-19-0/+17
| | | | | | | | | | | | than one body.
| * | Don't try and look up something if we have nothing.Matthew Somerville2012-12-15-1/+1
| | |
| * | Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-8/+8
| | |
| * | Convert report sending code to use bodies rather than areas/councils.Matthew Somerville2012-12-15-22/+20
| | |
* | | Merge branch 'centro'Struan Donald2013-01-04-0/+43
|\ \ \ | | |/ | |/| | | | | | | Conflicts: perllib/FixMyStreet/Cobrand/Default.pm
| * | add in user details field to %h so we can put sensible user details in ↵Struan Donald2012-12-18-0/+4
| | | | | | | | | | | | anonymous reports
| * | stick subcategory details in $h if there is oneStruan Donald2012-12-18-0/+4
| | |
| * | do not send report sent confirmation emails for anonymous reportsStruan Donald2012-12-18-1/+7
| | |
| * | add option to send email confirming report has been sent to councilStruan Donald2012-12-03-0/+29
| |/
* | Add do-not-reply config variable, removing special case from code.Matthew Somerville2013-01-02-5/+3
| |
* | In cases where we have two tier councils the TESTING_COUNCILSStruan Donald2012-12-18-1/+26
|/ | | | | | | mechanism could get confused as the council entry in the problem table did not match one of the entries in TESTING_COUNCILS. This code fixes that and should handle any combination of councils in that field
* If update alert email is to problem reporter, make it a login link.Matthew Somerville2012-10-12-1/+17
| | | | | This is so they can more easily update, especially if the update they've just received has mistakingly 'fixed' the report. This fixes #7.