Project:UC Node Checkout
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I'm losing the product attributes because some custom code I have does a node_save() without setting the $node->attributes value. In hook_nodeapi op=update you're replacing the cart attributes with the attributes from node. However, since the node has no attributes, it's clearing the attributes in my node. I'm not quite sure why you're doing this, but would it be ok to add an isset($node->attributes) check before overwriting the carts attributes. See attached patch.

AttachmentSize
attributes.patch636 bytes

Comments

#1

Status:active» fixed

Works for me. Committed! Thanks, Doug. : )

#2

Status:fixed» closed (fixed)

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

nobody click here