odoo / o-spreadsheet

Other
193 stars 44 forks source link

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

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

@dhrp-odoo @rrahir this PR targets master and is the last of the forward-port chain containing:

To merge the full chain, use

@robodoo r+

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

rrahir commented 1 month ago

@robodoo r+