MantisBT: master ce3450aa

Author Committer Branch Timestamp Parent
dregad dregad master 2012-08-31 03:17 master 33f3216a
Affected Issues  0008002: Unable to report issue. Error "data too long" on custom field name
 0014650: Improve comments for check custom field length in custom_field_delete_all_values()
Changeset

Add upgrade step to replace truncated custom field names in history

Function custom_field_get_id_from_name() contained code to check for
truncated custom fields names. This dates back to when the history
table's field_name column was only 32 chars long, whereas the custom
field's size is 64.

The history's field_name size has been increased to 64 since 1.1.0a4
(see issue 0008002), so the check has been removed from the code and
replaced by an upgrade step (calling new install helper function
install_update_history_long_custom_fields(), which converts legacy
history entries storing truncated custom field names by their expanded
full name.

Fixes 0014650

mod - admin/schema.php Diff File
mod - core/custom_field_api.php Diff File
mod - core/history_api.php Diff File
mod - core/install_helper_functions_api.php Diff File