odoo / o-spreadsheet

Other
193 stars 44 forks source link

[FW][FIX] header_size: JS sparse array problem #4883

Closed fw-bot closed 1 month ago

fw-bot commented 1 month ago

Description:

JavaScript methods can behave inconsistently with sparse arrays, often ignoring empty indexes. For example, Array.prototype.filter() skips empty indexes.

This commit resolves the issue by explicitly assigning undefined to all indexes when creating the sheet, ensuring that the insertion and removal of rows and columns work as expected.

Task: : 4074438

review checklist

Forward-Port-Of: odoo/o-spreadsheet#4716

robodoo commented 1 month ago

Pull request status dashboard

fw-bot commented 1 month ago

This PR targets saas-17.2 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port