Insert pll_ajax_backend parameter in a new empty object#824
Conversation
So we need to insert pll_ajax_backend parameter in a new empty object instead
|
There is no regression with the fix that we done in the 3.0.3 "Fix an ajax conflict with WooCommerce Tree Table Rate Shipping and HubSpot All-In-One Marketing" #803. It doesn't break the registration and the connection with the hubspot plugin.
As a reminder here is how to test WooCommerce Tree Table Rate Shipping: (ticket HS)
This PR fixes as expected the issue reported on HS #14681 ticket (private) with the FS License Manager (version 4.3.5). As a reminder here are the steps:
|




This PR fixes the HS #14681 ticket (private)
options.data could be undefined when it come from jQuery Form plugin espacially when it is used to upload a file because processData is set to false and data to null
So we need to insert pll_ajax_backend parameter in a new empty object instead to avoid the javascript error which blocks the uploading process.
Note that by jQuery Form plugin implementation the pll_ajax_backend parameter will be never sent to the server