You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [x] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
Correct saved xlsx file.
What is the current behavior?
File is broken.
What are the steps to reproduce?
I have xlsx document, contains one empty page with only one image (example file attached);
So... I unzip some-dst.xlsx and see file "xl/worksheets/_rels/sheet2.xml.rels":
There two relations have some Id (rId1).
Please, looks at the PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels::writeWorksheetRelationships(). I think that array $drawingOriginalIds have to contains items for new clonned page. I think there need to update array $drawingOriginalIds when any sheet will be cloned.
To fix this a use this way, but there is a very bad solution...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.
This is:
What is the expected behavior?
Correct saved xlsx file.
What is the current behavior?
File is broken.
What are the steps to reproduce?
So... I unzip some-dst.xlsx and see file "xl/worksheets/_rels/sheet2.xml.rels":
There two relations have some Id (rId1).
Please, looks at the PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels::writeWorksheetRelationships(). I think that array $drawingOriginalIds have to contains items for new clonned page. I think there need to update array $drawingOriginalIds when any sheet will be cloned.
To fix this a use this way, but there is a very bad solution...
Which versions of PhpSpreadsheet and PHP are affected?
PHP 7.1
Spreadsheet 1.5.2
The text was updated successfully, but these errors were encountered: