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
This commit is contained in:
Nicolas Évrard
2026-09-10 22:12:59 +02:00
parent 6ccad120d7
commit 6d3956ff5f
+2 -2
View File
@@ -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];