From 16dc5ff9f2d72172dc8f10f8a60ceeb2f7e5c3dc Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 8 Sep 2022 09:22:17 +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 ca635e8..dd47d05 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_.clone()); + old__.clone().replaceAll(new); } } }