From 93abf2388368cbffe24be4b4f3a5807e88956e26 Mon Sep 17 00:00:00 2001 From: Anton Todorov Date: Mon, 3 Apr 2023 10:29:08 +0300 Subject: [PATCH] M #-: onedb change-live --append with multiindex do not update the matching elements on append (cherry picked from commit d266248a49edc392413fe643a57da85bd501e16b) --- src/onedb/onedb_live.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/onedb/onedb_live.rb b/src/onedb/onedb_live.rb index 39a2e743de3..222bf636a86 100644 --- a/src/onedb/onedb_live.rb +++ b/src/onedb/onedb_live.rb @@ -451,7 +451,9 @@ def change_body(object, xpath, value, options = {}) if options[:delete] el.remove else - el.content = value + if !options[:append] + el.content = value + end end end