Actions
Defect #32977
closedRemove references to deleted user from "user"-Format CustomFields
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
When a user record is destroyed, custom field values for custom fields with field_format == 'user'
referencing the destroyed user are left unchanged.
This leads to problems with queries on such a custom field when using either the none
or any
operators, since these match against custom_values.value
(not) being null
or ''
- records that have the destroyed user's ID set will not turn up in the none
query, but in the any
query, despite being displayed with an empty value in the UI.
The attached patch adds a test case and addresses the issue by removing custom_values
records that reference the destroyed user.
Files
Related issues
Actions