-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix bug #3865 #3873
fix bug #3865 #3873
Conversation
Can you please explain the change. Anyway we can add a test for this? Also can you please update the changelog? |
In this bug (#3865) the inserted array is in 'A31' instead at 'A24' after heading in 'A23'. This is export example of bug (before fix.xlsx) After tracing the issue, i got the bug appear in here: Line 515 in ec6e21f
In We know when exporting using image and array, Laravel-excel write image first then write array after that. because of that So in this commit(ec6e21f) i moved the process writing image after writing array instead before writing array. This is example export after fix (after fix.xlsx) |
I just using test from laravel-excel |
@patrickbrouwers @chickgit this introduced a regression that has broken a few of our exports. It appears that this new logic while using headers and a drawing messes things up. Here is a simplified version of one of the exports where we are seeing unintended changes from this PR:
What this did pre-change was add an image to cell A1, leave the rest of the first row blank, and add footers in row 2. After that, student data was printed. Before PR merged (correct export): After PR merged (incorrect export): With the drawing being inserted at the end, it appears to break things pretty badly. I don't think we're doing anything we aren't supposed to be in our export logic, and so it seems to me this is an unintended change. |
1️⃣ Why should it be added? What are the benefits of this change?
This PR fix bug at #3865
2️⃣ Does it contain multiple, unrelated changes? Please separate the PRs out.
No
3️⃣ Does it include tests, if possible?
No
4️⃣ Any drawbacks? Possible breaking changes?
No
5️⃣ Mark the following tasks as done: