Closed (won't fix)
Project:
Matrix field
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2011 at 17:38 UTC
Updated:
4 Sep 2012 at 07:50 UTC
We are inserting nodes via node_save. We manually enter data to $node->field_OurMatrixField['data'] before saving (paying attention to the correct column and row array keys).
If I print a $node using print_r or dpm right before saving, it looks structurally identical to a node I had saved through Drupal GUI.
Yet on insert, the [data] gets corrupted - and ends up looking like the names of my column and row headers!
Is node_save just not the way to go in this case?
Comments
Comment #1
intrafusion