diff options
author | Dave Arter <davea@mysociety.org> | 2020-01-31 15:13:26 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2020-02-26 15:25:31 +0000 |
commit | 8c4b2a45e990dfe2e41d34883f0a4a9171650557 (patch) | |
tree | 094f6e7a62b1a4b5803bf9199ec3038d25d79275 /templates | |
parent | 351fc540d8a2a43563cddbc1a82a3331c7f3879f (diff) |
Show available cobrands in dropdown on FMS
For some reason switching to a Select stopped the update_model changes being applied
when persisting the model, meaning the INSERT query failed because the cobrand column
was null. This commit switches to a hidden input field for the cobrand which I’m
not super keen on, but it does get the job done...
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/admin/manifesttheme/form.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/web/base/admin/manifesttheme/form.html b/templates/web/base/admin/manifesttheme/form.html index 13ed60e04..4c97f292e 100644 --- a/templates/web/base/admin/manifesttheme/form.html +++ b/templates/web/base/admin/manifesttheme/form.html @@ -23,6 +23,8 @@ [% IF show_all %] [% form.field('cobrand').render | safe %] + [% ELSE %] + <input type=hidden name=cobrand value='[% c.cobrand.moniker %]' /> [% END %] <table> |