-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reader\Xlsx loads one empty comment for each proper comment in spreadsheet #375
Comments
I have the same problem, just tried to update from an earlier beta build to latest stable one. |
Would one of you be able to submit a PR that would fix the bug and cover it with unit tests ? |
I'll try to do it asap |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Pullrequest to fix this issue is ready to merge (or some comment needed) |
This is:
What is the expected behavior?
For each comment load just one proper comment into sheet
What is the current behavior?
When sheet has some comment, Xlsx reader loads two comments instead of one. The first has correct value and is placed in correct cell. The second one is empty and placed one cell left from proper comment
What are the steps to reproduce?
Create some xlsx file with comment e.g. in D4, load file with Reader\Xlsx and get output. Someone will see 2 comments in sheet - one in D4 (this is ok), and one empty in C4 (this is wrong)
Which versions of PhpSpreadsheet and PHP are affected?
branch develop, PHP 5.6
I believe the bug is here
PhpSpreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php
Line 1410 in edae73b
If I remove this:
and insert that instead:
everything is working and looks ok
The text was updated successfully, but these errors were encountered: