Hi all,
I'm having trouble saving a table field modified programatically. I tried save() on the page but the change isn't being saved.
Here is the code:
foreach ( $event->event_data as $ed )
{
// update the signup id so we don't have to look for the file again
if ( $signup_id != 0 )
{
var_dump( $ed->signup_id );
$ed->signup_id = $signup_id;
// $event->save( $event->event_data );
$event->save();
var_dump( $ed->signup_id );
}
The two var_dumps() produce this output:
NULL
int(8045148)
This tells me that the field is being set to the correct value. However, when I visit the page, the signup_id field is still NULL (that is, nothing is displayed).
$event is a page, $event->event_data is a table, and signup_id is one of the table columns.
Thanks for any help!
Julio