Not a big deal but if you set-up a commerce pane and later delete the node it refers to, commerce panes thinks it still exists.

Comments

pcambra’s picture

Title: Throws an error if the referenced node is deleted » Disable pane when referenced nodes are deleted
Category: bug » task

This can be easily done by deleting the pane on hook_entity_delete and disabling it in hook_entity_update if status is unpublished.

Patches are welcome :)

pcambra’s picture

Status: Active » Fixed

And... done!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rich_lang’s picture

Hi,

I think I have an error message that is related to this issue:
Notice: Undefined index: title in commerce_checkout_panes() (line 501 of /var/www/sites/all/modules/commerce/modules/checkout/commerce_checkout.module).

Could you explain how I solve the issue. #1 doesn't make a great deal of sense to me (sorry!).