- πΊπΈUnited States TomTech
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.
When performing any AJAX command on a page that does not have `settings.commerceAddToCartConfirmation` object (i.e. admin pages) I get the JS error:
Uncaught TypeError: Cannot read property 'overlayContentSelector' of undefined
at Object.attach (commerce_add_to_cart_confirmation.js?qk4s59:19)
at Object.<anonymous> (drupal.js?qk4s59:112)
at Function.each (jquery.min.js?v=1.7.2:2)
at Object.Drupal.attachBehaviors (drupal.js?qk4s59:110)
at Object.insert (ajax.js?v=7.74:590)
at Drupal.ajax.success (ajax.js?v=7.74:448)
at Object.success (ajax.js?v=7.74:189)
at Object.b.success (jquery.form.min.js?v=4.2.1:11)
at o (jquery.min.js?v=1.7.2:2)
at Object.fireWith [as resolveWith] (jquery.min.js?v=1.7.2:2)In a node edit page, use the Media module "Browse" button to attach media. The following AJAX command will throw the error above.
Inside `commerce_add_to_cart_confirmation.js`, relocate:
if (typeof settings.commerceAddToCartConfirmation.overlayContentSelector != 'undefined') {
overlayContentSelector = settings.commerceAddToCartConfirmation.overlayContentSelector;
}into the above conditional:
if (typeof settings.commerceAddToCartConfirmation != 'undefined') {
...
}Add patch with above.
None.
None.
None.
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.