diff --git a/app/views/admin/settings/_settings_form.html.erb b/app/views/admin/settings/_settings_form.html.erb index 865c409f512..d188d662116 100644 --- a/app/views/admin/settings/_settings_form.html.erb +++ b/app/views/admin/settings/_settings_form.html.erb @@ -1,5 +1,4 @@ <%= form_for(setting, url: admin_setting_path(setting), html: { id: "edit_#{dom_id(setting)}" }) do |f| %> - <%= f.hidden_field :tab, value: tab if defined?(tab) %>
<%= f.text_area :value, label: false, id: dom_id(setting), lines: 1 %>
diff --git a/app/views/admin/settings/_settings_table.html.erb b/app/views/admin/settings/_settings_table.html.erb index efe10514f95..ce99ffe4e17 100644 --- a/app/views/admin/settings/_settings_table.html.erb +++ b/app/views/admin/settings/_settings_table.html.erb @@ -19,11 +19,7 @@ <% if setting.content_type? %> <%= render "admin/settings/content_types_settings_form", setting: setting %> <% else %> - <% if defined?(tab) %> - <%= render "admin/settings/settings_form", setting: setting, tab: tab %> - <% else %> - <%= render "admin/settings/settings_form", setting: setting %> - <% end %> + <%= render "admin/settings/settings_form", setting: setting %> <% end %>