9830 - Null order in Magento\Sales\Block\Order\PrintShipment.php#17998
Merged
magento-engcom-team merged 2 commits intomagento:2.2-developfrom Sep 25, 2018
Merged
9830 - Null order in Magento\Sales\Block\Order\PrintShipment.php#17998magento-engcom-team merged 2 commits intomagento:2.2-developfrom
magento-engcom-team merged 2 commits intomagento:2.2-developfrom
Conversation
Contributor
Contributor
|
Hi @MateuszChrapek. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
ihor-sviziev
approved these changes
Sep 10, 2018
Contributor
|
Hi @ihor-sviziev, thank you for the review. |
This was referenced Sep 25, 2018
magento-engcom-team
pushed a commit
that referenced
this pull request
Sep 25, 2018
Contributor
|
Hi @MateuszChrapek. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIPTION
When trying to print the order information from customer's account view the following error is placed in httpd logs:
Fatal error: Call to a member function getRealOrderId() on null in /vendor/magento/module-sales/Block/Order/PrintShipment.phpThe cause of this was additional AJAX request taking place after closing the print prompt as discussed by @ihor-sviziev in #9830, trying to render print information one additional time, however without registry properly initialized, it results in the error. I've changed the block that was causing this issue to be uncachable, which seems to be fixing the problem. I've also added changes that were added to 2.1 from #10530 that were not present in 2.2.
FIXED ISSUES
MANUAL TESTING SCENARIOS