| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
| |
Fixes mysociety/fixmystreet-freshdesk#102
|
|
|
|
| |
Confirm phone validation, Westminster test name, BANES undef.
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
accepts name or code for finding the field. Useful for checking for
individual open311 fields that don't have a value.
|
|/ |
|
| |
|
|
|
|
| |
For updating/removing an extra field.
|
|
|
|
|
|
|
| |
Clear the photo cache if the non_public flag is switched on, do not
cache non_public or LOGIN_REQUIRED photos, remove non_public photos
from memcached recent lists, pass through any cookies on non_public
reports/updates, and check the non_public flag on photo lookup.
|
|
|
|
| |
Instead, load the required module directly.
|
|
|
|
|
| |
If someone tries to moderate after someone else has, re-show the
form and an error.
|
|
|
|
|
|
|
|
| |
As perlsyn says, "NOTE: The behaviour of a `my`, `state`, or `our`
modified with a statement modifier conditional or loop construct (for
example, `my $x if ...`) is undefined. The value of the `my` variable
may be `undef`, any previously assigned value, or possibly anything
else."
|
| |
|
|
|
|
| |
To avoid adding a new, but identical translation
|
|
|
|
|
|
| |
`report_check_for_errors` now fetches the cobrand for the current report
and, if present, runs `report_validation` method from cobrand over the
report.
|
|
|
|
|
| |
When more than one photo has been uploaded, allow each one to
be published/not independently.
|
| |
|
|
|
|
| |
Allows easy display of Open311 field values for problems in templates
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Calling the function 'translate' causes gettext-extract to add the
string to the .po file. Also, we no longer need an admin 'updated'
message as the main form has its own success message.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a `translation_for` method and an `add_transation` method to
Translatable to help hide the details when editing and listing
translations.
`translation_for` returns all translations if only passed a column or a
single translation if passed with a column and a language.
`add_translation` will add, or update, a translation if passed in the
column, language and string.
|
|
|
|
|
|
| |
As category is used both for display and as a link between Problem and
Contact tables, add `category_display` for use whenever a category is
displayed.
|
| |
|
|
|
|
|
|
| |
When the category or state changes, the list of available templates
updates (previously it was frozen at what the category was on page
load, and didn't care about the state).
|
| |
|
|
|
|
| |
Allow get_extra_metadata to return all the data with no argument.
|
| |
|
|
|
|
| |
And create default cobrand class without all of Moose.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|