When I generate a features with a content type, I have a error in the file of the content type.
I thing that is because the entity type use a different sintax for represent the array.
The error exactly is:
The wrong way:
'entity' => {
"item_id" : null,
"field_name" : "field_valores",
"field_usuario
" : { "und" : [] },
"field_fecha" : { "und" : [
{
"value" : "2015-01-01 00:00:00",
"show_todate" : false,
"timezone" : "Europe\/Madrid",
"offset" : 3600,
"offset2" : 3600,
"value2" : "2015-01-01 00:00:00"
}
]
},
"field_valor" : { "und" : [] }
},
The correct way (I alterate it):
'entity' => array(
"item_id" => null,
"field_name" => "field_valores",
"field_usuario" => array( "und" => '' ),
"field_fecha" => array( "und" => array(
"value" => "2015-01-01 00:00:00",
"show_todate" => false,
"timezone" => "Europe\/Madrid",
"offset" => 3600,
"offset2" => 3600,
"value2" => "2015-01-01 00:00:00"
),
),
"field_valor" => array( "und" => '' )
),
¿Any solution? I searched about it but i haven't the solution. For the moment, I change the file manually, but i don't know exactly when i have to modify the module.
Thanks
Comments
Comment #1
hefox CreditAttribution: hefox commentedI think that is from entity module and was fixed there