View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0014766 | mantisbt | code cleanup | public | 2012-10-03 04:26 | 2014-09-23 18:05 |
Reporter | dregad | Assigned To | dregad | ||
Priority | low | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Target Version | 1.2.12 | Fixed in Version | 1.2.12 | ||
Summary | 0014766: Optimize custom_field_update() function | ||||
Description | Current implementation has lots of nearly identical code block (one for each custom field property) - this would be better handled using a loop on the cf's definition array. | ||||
Tags | No tags attached. | ||||
MantisBT: master-1.2.x 6e53cd26 2012-10-02 04:28 Details Diff |
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 |
Affected Issues 0014765, 0014766 |
|
mod - core/custom_field_api.php | Diff File | ||
MantisBT: master da782868 2012-10-02 04:28 Details Diff |
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 |
Affected Issues 0014765, 0014766 |
|
mod - core/custom_field_api.php | Diff File |