If the order item has no fields there is a PHP notice:
Notice: Undefined index: fields in Drupal\commerce_webform_order\Plugin\WebformHandler\CommerceWebformOrderHandler->prepareData() (line 875 of modules/contrib/commerce_webform_order/src/Plugin/WebformHandler/CommerceWebformOrderHandler.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3046884-6.patch | 1.3 KB | aleksip |
Comments
Comment #2
aleksipThis patch adds a simple isset check.
Comment #3
jigish.addweb commented@aleksip, In the attached patch I Added the additional condition checks to verify the error solution, kindly review it & let me know if the patch doesn't works.
Thanks
Comment #5
aleksip@jigish.addweb Tested your patch and it works for me. Would be good to apply the codesniffer_fixes.patch.
Comment #6
aleksipHere is the patch with Code Sniffer fixes applied.
Comment #7
aleksipComment #10
facine commentedThanks! Fixed, please download and review the latest dev release.