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

fix: trimChars() handle for null #46

Merged
merged 1 commit into from
May 14, 2024
Merged

Conversation

justinplourde
Copy link
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
Api/Model/Action/Export.php Show resolved Hide resolved
@justinplourde justinplourde merged commit 124558f into master May 14, 2024
1 check failed
@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