I am using a custom form for item reservation which consists of checkboxes instead of select fields. When the form is submitted, deselected items have a merci_item_nid of 0.
In the function merci_add_reservation_items it is not checked whether merci_item_nid is > 0, therefore placeholder content is created which does not have a content type assigned.
The attached patch fixes the problem for me.
| Comment | File | Size | Author |
|---|---|---|---|
| merci-check-item-nid.patch | 880 bytes | thomas.feichter |
Comments
Comment #1
darrick commentedYou could implement the presave op in hook_nodeapi to remove the merci_item_nid variables which are 0.
Comment #2
darrick commented