Project

General

Profile

Actions

Defect #44255

open

Silent loss of issue custom field values

Added by Liane Hampe 4 months ago. Updated 11 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
Resolution:
Affected version:

Description

Problem Behavior

Two scenarios cause custom field values to disappear without journal entries:

1. Decoupling + Bulk Edit: Custom field is removed from a project, then a bulk edit is performed on its issues.
2. Decoupling in both + Move: Custom field is removed from both source and target projects, then an issue is moved between them.

Proposed Fix

1. Location: save_custom_field_values method in lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
2. Approach: Before deleting CustomValue records via dependent: :delete_all, detect which values be removed and create journal entries documenting the deletion. Then proceed the deletion.


This behavior is expected in all version of Redmine.

Actions #1

Updated by Philippe Cloutier 11 days ago

I am not so surprised to see a loss, although these are not the moments when you would expect it. Is there no warning about data loss when decoupling ?

Actions

Also available in: Atom PDF