Closed (fixed)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Products
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2011 at 19:52 UTC
Updated:
14 Jul 2011 at 08:02 UTC
In node view of a product, the weight never shows, since it's using '#weight' instead of '#amount'.
This patch fixes it.
I note that you're using bare attributes on the node object, like $node->weight. That seems pretty questionable to me, as they're not in any way organized and can easily conflict with attributes added by other modules. Especially weight!
| Comment | File | Size | Author |
|---|---|---|---|
| ubercart.weight_doesnt_render.patch | 463 bytes | rfay |
Comments
Comment #1
longwaveCommitted, thanks.
Comment #2
longwaveAlso, the $node properties are a long standing design that has held since D5, and in the current release cycle there is unlikely to be time to upgrade them to fields - but that is obviously something I'd like to see in the future if possible.