Project

General

Profile

Actions

Defect #32977

closed

Remove references to deleted user from "user"-Format CustomFields

Added by Jens Krämer almost 5 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Custom fields
Target version:
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

Has duplicate Redmine - Feature #8443: Removing CustomValue with related User objectClosed2011-05-26

Actions
Actions

Also available in: Atom PDF