Skip to content

fix: append sheets instead of inserting at explicit index in queued multi-sheet exports#4373

Open
YoussefMansour9 wants to merge 1 commit into
SpartnerNL:4.xfrom
YoussefMansour9:fix/queue-export-multisheet-phpspreadsheet5
Open

fix: append sheets instead of inserting at explicit index in queued multi-sheet exports#4373
YoussefMansour9 wants to merge 1 commit into
SpartnerNL:4.xfrom
YoussefMansour9:fix/queue-export-multisheet-phpspreadsheet5

Conversation

@YoussefMansour9

Copy link
Copy Markdown

Fixes #4365

In QueueExport::handle(), passing $sheetIndex to addNewSheet() causes Spreadsheet::createSheet($index) to increment activeSheetIndex in PhpSpreadsheet 5, leaving it out of bounds. Appending without explicit index preserves order since disconnectWorksheets() was already called.

@YoussefMansour9 YoussefMansour9 force-pushed the fix/queue-export-multisheet-phpspreadsheet5 branch from e00e9f1 to 1a4a280 Compare May 22, 2026 21:04
@patrickbrouwers

Copy link
Copy Markdown
Member

Is this still needed now we have #4365 (comment) merged ?

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