Relationship Graph
View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015264 | mantisbt | custom fields | public | 2012-12-06 10:11 | 2014-09-23 18:05 |
Reporter | nimmich | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.12 | ||||
Target Version | 1.2.13 | Fixed in Version | 1.2.13 | ||
Summary | 0015264: custom_field_get_id_from_name() broken since 1.2.12 | ||||
Description | custom_field_get_id_from_name() always returns false since mantisbt version 1.2.12 if the field name is longer than one character. Reason: Patch: --- mantisbt-1.2.12\core\custom_field_api.php 2012-11-12 00:10:00.000000000 +0100 history record created after 1.1.0a4 has the correct field
| ||||
Tags | No tags attached. | ||||
MantisBT: master-1.2.x 6a7db340 2012-08-31 03:38 Details Diff |
Fix SQL error when sorting by custom field containing special char Incorrect behavior is due to unnecessarily escaping of special chars by calling db_prepare_string() on the custom field's name before attempting to retrieve it's id with custom_field_get_id_from_name(). This causes a double-escaping which prevents a match. Even though this is not strictly necessary to fix the issue at hand, this commit also replaces db_query() call by db_query_bound() in custom_field_get_id_from_name(). Fixes 0012170 |
Affected Issues 0012170, 0015264 |
|
mod - core/custom_field_api.php | Diff File | ||
mod - core/filter_api.php | Diff File | ||
MantisBT: master-1.2.x 8c9038f7 2012-12-06 10:57 Details Diff |
Fix custom_field_get_id_from_name() always returning false Commit 6a7db3403d42cf58e8c5ebb50b60a7c090906c36 introduced an error in the call to db_query_bound(), passing the param as a scalar value instead of an array. Thanks to user nimmich for noticing the issue and providing a patch. Fixes 0015264 |
Affected Issues 0015264 |
|
mod - core/custom_field_api.php | Diff File | ||
MantisBT: master d0807051 2012-12-06 10:57 Details Diff |
Fix custom_field_get_id_from_name() always returning false Commit 6a7db3403d42cf58e8c5ebb50b60a7c090906c36 introduced an error in the call to db_query_bound(), passing the param as a scalar value instead of an array. Thanks to user nimmich for noticing the issue and providing a patch. Fixes 0015264 |
Affected Issues 0015264 |
|
mod - core/custom_field_api.php | Diff File |