Skip to content

fix: trimChars() handle for null#46

Merged
justinplourde merged 1 commit intomasterfrom
jplourde/ORD-3815-fix
May 14, 2024
Merged

fix: trimChars() handle for null#46
justinplourde merged 1 commit intomasterfrom
jplourde/ORD-3815-fix

Conversation

@justinplourde
Copy link
Copy Markdown
Contributor

@justinplourde justinplourde commented May 13, 2024

Issue

The shipping phone number and street line 2 can be set as optional fields in Magento so these fields can come in as null when exporting orders which was causing the trimChars() method to throw an exception.

Solution

Allow nullable input values for the trimChars() method

Testing

Running a local instance of Magento2 I disabled the shipping phone number and shipping street line 2 fields through the admin panel. Then with the updated Autcane API plugin locally installed on my Magento store I tested exporting orders and confirmed the expected output.

@justinplourde justinplourde requested a review from a team as a code owner May 13, 2024 22:47
Comment thread Api/Model/Action/Export.php
@justinplourde justinplourde merged commit 124558f into master May 14, 2024
@justinplourde justinplourde deleted the jplourde/ORD-3815-fix branch May 14, 2024 21:14
This was referenced May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants