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 {