MantisBT: master-1.2.x 6e53cd26

Author Committer Branch Timestamp Parent
dregad dregad master-1.2.x 2012-10-02 04:28 master-1.2.x d979cf6a
Affected Issues  0014765: Usage of db_query in custom fields api
 0014766: Optimize custom_field_update() function
Changeset

Custom fields api - optimize and use db_query_bound

Replaces all uses of db_query() by db_query_bound() in the API.

Some SQL queries were rewritten in a cleaner and more efficient way.

custom_field_update() was greatly simplified by use of a foreach loop
instead of nearly identical code blocks for processing of each field to
update.

Fixes 0014765, 0014766

mod - core/custom_field_api.php Diff File