I'm using Expression Engine's Channel Entries API and am having an issue with it.
User can add credits to their name. The storing of these credits work fine. If they choose to update their profile later on, it goes wrong.
I have this:
$data = array(
'edit_date' => time(),
'entry_id' => $credit_entry_id,
'title' => $credit["credit_upd_title_" . $credit_entry_id],
'field_id_90' => $credit["credit_upd_director_" . $credit_entry_id],
'field_ft_90' => 'none',
'field_id_91' => $credit["credit_upd_year_" . $credit_entry_id],
'field_ft_91' => 'none',
'field_id_93' => $credit["credit_upd_link_" . $credit_entry_id],
'field_ft_93' => 'xhtml',
'category' => $cat_arr
);
When I dump this data, the data is correct. When I actually run:
$this->EE->api_channel_entries->save_entry($data, (int) $this->credit_channel_id, (int) $credit_entry_id)
everyting gets updated correctly EXCEPT for the title. The title instead is updated with the title of the parent_entry (this are playa entries).
Am I missing something in the usage of the API or am I encountering a bug?