diff --git a/app/helpers/translatable_form_helper.rb b/app/helpers/translatable_form_helper.rb index 8ab619634..4c46e0507 100644 --- a/app/helpers/translatable_form_helper.rb +++ b/app/helpers/translatable_form_helper.rb @@ -37,9 +37,7 @@ module TranslatableFormHelper end def existing_translation_for(locale) - # Use `select` because `where` uses the database and so ignores - # the `params` sent by the browser - @object.translations.select { |translation| translation.locale == locale }.first + @object.translations.detect { |translation| translation.locale == locale } end def new_translation_for(locale)