Child pages
  • Ability to update only given fields via kDBItem::Update method
Skip to end of metadata
Go to start of metadata

Imported from: http://groups.google.com/group/in-portal-dev/browse_thread/thread/dd4f3fd564dd7488#

Right now, when some fields of kDBItem object are changed and kDBItem::Update method is issued then all fields are put into UPDATE sql and not only ones, that were changed.

I'm proposing to add 2nd optional parameter (1st parameter is $id) to kDBItem::Update method to allow specifying fields, that should only be updated in database. Also only these fields will be overwritten in kDBItem::OriginalFieldValues array. This way there is still way to detect change in field values, that were not specified to kDBItem::Update method.

specific_field_db_update_modules.patch

specific_field_db_update_core.patch

Related Tasks

INP-1116 - Getting issue details... STATUS