From 1a5a2e811bdda58d4695e89be3d34bdc5d07bec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 9 Mar 2024 10:59:52 +0100 Subject: [PATCH] Compute index when selecting list-form row to select records Closes #13092 (grafted from 87ea94e8f57c8329e847876083e66a0bf8a1326c) --HG-- branch : 7.0 --- sao/src/view/list_form.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sao/src/view/list_form.js b/sao/src/view/list_form.js index 80014619ed..89fcece45a 100644 --- a/sao/src/view/list_form.js +++ b/sao/src/view/list_form.js @@ -165,11 +165,13 @@ var current_view_form; if (event_.shiftKey) { + let i = 0; for (const other_view_form of this._view_forms) { - if (other_view_forms.record === this.record) { + if (other_view_form.record === this.record) { current_view_form = other_view_form; break; } + i++; } this.select_records(i, next_form_idx); } else {