Skip to content
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

NPE when downloading credit slip for shipping only #36130

Closed
2 tasks done
fire2 opened this issue May 11, 2024 · 2 comments
Closed
2 tasks done

NPE when downloading credit slip for shipping only #36130

fire2 opened this issue May 11, 2024 · 2 comments
Labels
Bug Type: Bug

Comments

@fire2
Copy link

fire2 commented May 11, 2024

Prerequisites

Describe the bug and add attachments

When trying to download a credit slip where only the shipping was reimbursed, a NPE exception is thrown.

PrestaShop\PrestaShop\Core\Util\Sorter::natural0:Argument#1(Sarray) must be of type array, null given, called in
/public_html/classes/pdf/HTMLTemplateOrderSlip.phponline167

Expected behavior

The credit slip can be downloaded just fine.

Steps to reproduce

  1. Refund just the shipping for an order (no products)
  2. Go to "Credit slips" and try to download the generated credit slip
  3. You get the NPE

PrestaShop version(s) where the bug happened

8.1.4

PHP version(s) where the bug happened

No response

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

No response

@fire2 fire2 added Bug Type: Bug New New issue not yet processed by QA labels May 11, 2024
@florine2623 florine2623 removed the New New issue not yet processed by QA label May 13, 2024
@florine2623
Copy link
Contributor

Hello @fire2 ,

I can't reproduce your issue :

Screen.Recording.2024-05-13.at.15.53.26.mov

We use GitHub issues only to discuss about bugs and new features in the PrestaShop project. If you need support, you can find resources to help you on this page: Get help with PrestaShop.

Alternatively, you can also ask for help in the community forums or in the public Slack channel.

Thank you

@fire2
Copy link
Author

fire2 commented May 13, 2024

You're not even using the same PS version reported.

Note to self: there's no point in reporting bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants