PSWebServiceLibrary with sendemail=1 parameter does not work #37249
Labels
Bug
Type: Bug
Carriers
Label: Which BO under menu is concerned
NMI
Status: issue needs more information
Waiting for dev
Status: action required, waiting for tech feedback
WS
Category: Web Service
Prerequisites
Describe the bug and add attachments
In case of updating the
order_carrier
entity via webservice, passing thesendmail
parameter the system does not work.The problem is in the
PrestaShopWebservice::edit()
method https://github.com/PrestaShop/PrestaShop-webservice-lib/blob/3fad904e9e8ab57dd890a75ba1bf23981171291a/PSWebServiceLibrary.php#L451-L465you should invert the if with the else
I attach a test script
Expected behavior
No response
Steps to reproduce
Use the attached script
PrestaShop version(s) where the bug happened
PSWebServiceLibrary
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).
@Codencode
The text was updated successfully, but these errors were encountered: