diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-01-20 12:26:30 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-02-03 16:24:01 +0000 |
commit | 7c7b008a0f2c6937b6bf02ab26134bb90aae19ee (patch) | |
tree | c8da153409eb58e4cbf6a00795b6322153cc4c03 /app/helpers | |
parent | 9f2db30774d159eb143497584de65f0d7a68ee40 (diff) |
Fix submission of form containing both existing and new translations
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/admin_public_body_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/admin_public_body_helper.rb b/app/helpers/admin_public_body_helper.rb index 5139bd49f..97f656ddb 100644 --- a/app/helpers/admin_public_body_helper.rb +++ b/app/helpers/admin_public_body_helper.rb @@ -7,11 +7,11 @@ module AdminPublicBodyHelper object = public_body else # ...but additional locales go "on the side" - prefix = 'public_body[translated_versions][]' + prefix = :translations object = if public_body.new_record? PublicBody::Translation.new else - public_body.find_translation_by_locale(locale.to_s) + public_body.find_translation_by_locale(locale.to_s) end object ||= PublicBody::Translation.new end |