From ff03d664397cb9ae56759328a13370f90efcab40 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 22 Apr 2013 19:44:46 +0800 Subject: [PATCH] Fix missing values in tag form when editing --- app/views/admin/tags/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/tags/_form.html.erb b/app/views/admin/tags/_form.html.erb index 9628e0145..5715b8dfc 100644 --- a/app/views/admin/tags/_form.html.erb +++ b/app/views/admin/tags/_form.html.erb @@ -1,7 +1,7 @@ <%= form_for :tag, :url => admin_tag_path(tag), :method => :put, :remote => true do |f| %> <%= f.fields_for :name_translations do |f| %> <% @site_valid_locales.each do |locale| %> - <%= I18nVariable.from_locale(locale) %>:<%= f.text_field locale %> + <%= I18nVariable.from_locale(locale) %>:<%= f.text_field locale, value: @tag.name_translations[locale] %> <% end %> <% end %> <%= hidden_field_tag :module_app_id, @module_app_id %>