From 9061f6ce9405bdc30700cd65d875190c7941a29d Mon Sep 17 00:00:00 2001 From: bohung Date: Mon, 5 Sep 2022 09:29:12 +0800 Subject: [PATCH] Fix bug. --- app/controllers/asks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/asks_controller.rb b/app/controllers/asks_controller.rb index 43943d8..ca635e8 100644 --- a/app/controllers/asks_controller.rb +++ b/app/controllers/asks_controller.rb @@ -475,7 +475,7 @@ 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_.replaceAll(new_); + old_.replaceAll(new_.clone()); } } }