When using a node type mapped to multiple products using a view, in conjunction with Vertical Tabs module, the redirect (to select a product type) occurs on the edit content type page (admin/content/node-type/%) for uc_node_checkout types. This prevents editing the content type.

This happens because vertical tabs creates a node form programmatically in the background for introspection, triggering ucnc's form_alter with no nid.

Attached 1-line patch avoids redirecting when the node form is #programmed.

CommentFileSizeAuthor
uc_node_checkout-programmed.patch554 bytesrstaylor

Comments

socialnicheguru’s picture

what is the status of this?

rszrama’s picture

Status: Active » Fixed

Thanks for digging this one up! I had no clue why the poster in #514278: Editing content type takes me to product selection was having that trouble, but I'm betting it was this same issue. Committed!

Status: Fixed » Closed (fixed)

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