diff options
author | Dave Arter <davea@mysociety.org> | 2016-12-01 16:52:34 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-01-10 10:55:19 +0000 |
commit | 7416881f07d2a02ce0c98718e0ca5790a39518d7 (patch) | |
tree | 8d4d725f403497846235a7e5a2040f7043cc78bd /perllib/FixMyStreet/App/Controller/Admin.pm | |
parent | d7c3106d64f8237a4f6388a0e51dcd29bae93ec8 (diff) |
Allow editing of ResponseTemplate state in admin
This includes a refactor of the state dropdown field into its own template for easy reuse.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index bbdf449aa..592d37d4e 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -978,6 +978,7 @@ sub template_edit : Path('templates') : Args(2) { } else { $template->title( $c->get_param('title') ); $template->text( $c->get_param('text') ); + $template->state( $c->get_param('state') ); $template->auto_response( $c->get_param('auto_response') ? 1 : 0 ); $template->update_or_insert; |