diff --git a/app/controllers/asks_controller.rb b/app/controllers/asks_controller.rb index 79833a6..bc5978c 100644 --- a/app/controllers/asks_controller.rb +++ b/app/controllers/asks_controller.rb @@ -530,7 +530,9 @@ class AsksController < ApplicationController old_input = old_.find('input, select'); if(new_input.length != 0 && old_input.length != 0){ if(new_input.length == old_input.length){ - old_.clone().replaceAll(new_); + var old_clone = old_.clone(); + old_clone.find('input, select').attr('name', new_input.attr('name')); + old_clone.replaceAll(new_); } } }