Skip to content

[FIX] HeaderVisibility: fix getNextVisibleCellPosition getter #9040

Open
rrahir wants to merge 2 commits into
17.0from
17.0-fix-bad-edition-rar
Open

[FIX] HeaderVisibility: fix getNextVisibleCellPosition getter #9040
rrahir wants to merge 2 commits into
17.0from
17.0-fix-bad-edition-rar

Conversation

@rrahir

@rrahir rrahir commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Description:

description of this task, what is implemented and why it is implemented that way.

Task: TASK_ID

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

rrahir added 2 commits June 26, 2026 12:16
The edition plugin would modify the selection whether or not it had
control over it when changing sheet. The idea is to keep the composer
over a visible cell but this only make sense if the composer is actually
active.

In itself, this did not have any impact because the selectionPlugin
synchronizes its state with the SelectionStreamProcessor at the end of
the dispatch cycle (when it has the control over it).

Task: 6340589
The getter claimed to always return a cell position but the typing was
ignored voluntarily and in some edge cases, the getter could return an
undefined HeaderIndex for the columns or the rows.

This could lead to crashes as the result of the getter was fed to the
SelectionStreamProcessor, which throws an error when given an invalid
position.

Task: 6340589
@robodoo

robodoo commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Pull request status dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants