We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE API - update_entry

Development and Programming

DonaldGarlick's avatar
DonaldGarlick
4 posts
15 years ago
DonaldGarlick's avatar DonaldGarlick

Hi there,

I’m trying to use the EE API to insert/update entries and I’ve come across an issue - quite possibly my mistake … but maybe not …

Using v2.1.3 Build: 20101220 Calling $this->EE->api_channel_entries->update_entry with a data array containing only the fields I want to update, the system seems to loop through all the ‘required’ fields and include them in the update. However, because I’m only updating a few fields, the system is updating the entry with blanks for the fields I dont specify.

Using v2.1.0 Build: 20100810 So, I took my code from v2.1.3 and tried it against v2.1.0, and the update_entry works as expected - I only pass in the fields I want to update, and the system only updates those fields - the rest of the fields remain intact.

The system I’m working on was started by another individual, an so it’s possible that the issue isnt with the EE core base but rather with the multitude of plugins, modules, etc that have been installed into this instance.

Any thoughts?

Oh, and the documentation about the API is very thin - just a few lines in the user guide!

Regards Donald

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.