Project

General

Profile

Actions

Defect #28953

open

Issue content gets lost if user deletes an attachment

Added by André Bachmann over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Given is an already existing issue with one or more attachments. A user wants to edit this issue and add a comment, so he clicks "Edit". While editing and adding the issue's text, he notices an unwanted attachment in the issue head (in the yellow box on top of an issue) - so he clicks the small trash bin icon right to the attachment. The user gets asked if he is sure to delete this file, so he clicks "Yes". Now all of his text changes are gone because Redmine reloads the issue page! And it doesn't even warn the user that all of his changes will get lost.

To resolve this issue, I suggest a solution similar to when a user wants to close a browser tab while there is still an unsaved issue edit. Here the user gets asked if he really wants to close this tab.

The Redmine version is 3.4.5, and I also confirmed this with an older Redmine 2.6.2.


Files

diff-r17439.patch (3.33 KB) diff-r17439.patch Takenori TAKAKI, 2018-07-09 08:27
edit-icon-remain-displayed@2x.png (40.3 KB) edit-icon-remain-displayed@2x.png Go MAEDA, 2018-07-09 14:41
diff-r17442.patch (5.56 KB) diff-r17442.patch Takenori TAKAKI, 2018-07-11 11:09
Actions

Also available in: Atom PDF