View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004128 | mantisbt | custom fields | public | 2004-07-18 21:08 | 2004-08-29 01:48 |
Reporter | matt_doran | Assigned To | grangeway | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.19.0a2 | ||||
Fixed in Version | 0.19.0rc1 | ||||
Summary | 0004128: Custom field data lost on resolve and close of issue | ||||
Description | When you update or resolve an issue that has custom fields, but those custom fields are not displayed on the resolve/close page, the custom field data is set to blank. Steps:
(See below for a sample of SQL taken when resolving the issue.) This problem definately occurs on the resolve and close pages but not sure it if happens elsewhere. | ||||
Additional Information | SELECT field_id FROM mantis_custom_field_project_table p, mantis_custom_field_table f WHERE p.project_id='7' AND p.field_id=f.id ORDER BY p.sequence ASC, f.name ASC SELECT * FROM mantis_custom_field_table WHERE id='1' SELECT name, type, possible_values, valid_regexp, access_level_rw, length_min, length_max, default_value FROM mantis_custom_field_table WHERE id='1' SELECT name, type, possible_values, valid_regexp, access_level_rw, length_min, length_max, default_value FROM mantis_custom_field_table WHERE id='1' SELECT value FROM mantis_custom_field_string_table WHERE field_id='1' AND bug_id='4048' UPDATE mantis_custom_field_string_table SET value='' WHERE field_id='1' AND bug_id='4048' INSERT INTO mantis_bug_history_table ( user_id, bug_id, date_modified, field_name, old_value, new_value ) VALUES ( '14', '4048', '2004-07-19 11:59:01', 'Client Name', 'XXXXX', '' ) | ||||
Tags | No tags attached. | ||||
Ok, I think what's happening is the following: The bug_resolve and bug_close behavious is similar to that of bug_report. In bug_report, the custom field either takes the value supplied or the default value. bug_resolve/close currently behave the same way - hence, the set value = '' query. In bug_update, the custom field either takes the supplied value or null. If the value is null, the custom field value is not set. |
|
If a custom field is hidden in the resolve / close page, then its value must not be modified. This should be similar to the behaviour of the update page when an custom field is not visible. |
|
This issue appears to be resolved, however - we've got an issue with 'clearing' checkboxes/default values |
|