From 6d3956ff5f9813199f6bcfeb3646de72591062c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Thu, 10 Sep 2026 22:12:59 +0200 Subject: [PATCH] Use the selection from the update_selection call in Selection editable columns Since 917de1b3e124 the selection is not stored on the selection_mixins we must thus use the one coming from the callback call Closes #15087 (grafted from e80a99079b44ce2d1c22865bd919fef6bfc8ce24) --HG-- branch : 8.0 --- sao/src/view/tree.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sao/src/view/tree.js b/sao/src/view/tree.js index 7aad6bbd69..7e49ef82ea 100644 --- a/sao/src/view/tree.js +++ b/sao/src/view/tree.js @@ -2890,10 +2890,10 @@ var text_value = this.get_textual_value(record); cell.text(text_value).attr('title', text_value); } else { - this.update_selection(record, () => { + this.update_selection(record, (selection, help) => { var value = this.field.get(record); var prm, text, found = false; - for (const option of this.selection) { + for (const option of selection) { if (option[0] === value) { found = true; text = option[1];