Project

General

Profile

Actions

Feature #31278

closed

Change Delete button name to Delete issue

Added by Frederico Camara over 5 years ago. Updated over 2 years ago.

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

0%

Estimated time:
Resolution:

Description

I noticed some users would click on the edit button to edit a commentary, and then on the delete issue button on the bottom of the page (on the action menu), and then confirm. It happens sometimes, most of our users don't have the permission to delete an issue, but I've had project managers doing this from time to time when they are tired.

The patch is very trivial, it changes the name of the button from "Delete" to "Delete Issue". So as it is not mistaken for "Delete what is selected", which is the expected behavior for some users.


Files

button-delete-patch.patch (1.78 KB) button-delete-patch.patch Frederico Camara, 2019-04-29 21:38
0021-Change-Delete-issue-button-behaviour.patch (2.49 KB) 0021-Change-Delete-issue-button-behaviour.patch For Redmine 4.1 (and others) Frederico Camara, 2021-02-08 14:20
31278.patch (7.04 KB) 31278.patch Go MAEDA, 2021-12-31 14:12

Related issues

Related to Redmine - Feature #34494: Rename the save, edit and delete buttons on the query form to clarify the scopeClosedGo MAEDA

Actions
Related to Redmine - Defect #38233: Broken spelling in context menus Closed

Actions
Has duplicate Redmine - Defect #36585: Change "Delete" entry in issue context to "Delete issue(s)"Closed

Actions
Actions #1

Updated by Frederico Camara over 5 years ago

BTW: I probably am forgetting the tests.

Actions #2

Updated by Frederico Camara over 5 years ago

Tests checked. No tests for this.

Actions #3

Updated by Marius BĂLTEANU over 5 years ago

Which version of Redmine do you use?

Actions #4

Updated by Go MAEDA almost 4 years ago

  • Related to Feature #34494: Rename the save, edit and delete buttons on the query form to clarify the scope added
Actions #5

Updated by Go MAEDA almost 4 years ago

Another solution has been posted as #34494.

Actions #6

Updated by Frederico Camara almost 4 years ago

Slightly different Patch (for Redmine 4.1), renames button to Delete Issue and shows the button only on top menu (hides it from the menu near the issue history).

Actions #7

Updated by Marius BĂLTEANU almost 4 years ago

Frederico Camara wrote:

Slightly different Patch (for Redmine 4.1), renames button to Delete Issue and shows the button only on top menu (hides it from the menu near the issue history).

Frederico, another solution to avoid the confusion was posted as part of #34703, please take a look.

Actions #8

Updated by Frederico Camara almost 4 years ago

Marius BALTEANU wrote:

Frederico Camara wrote:

Slightly different Patch (for Redmine 4.1), renames button to Delete Issue and shows the button only on top menu (hides it from the menu near the issue history).

Frederico, another solution to avoid the confusion was posted as part of #34703, please take a look.

Marius, your patch addresses a different problem. My problem is the user sometimes mistakes the "delete this comment" icon for the "delete this issue icon". Both have the same caption and depending on how you configurer your redmine, can sometimes be close on the bottom part of the interface. That I know, it happened three times where I work, with different users. And it was a pain restoring the data from the logs, and the attachments from the backups.

My patch mostly addresses the delete issue icon on the bottom part of the interface, I don't mind the non destructive actions:
  • it changes the caption to differentiate between the two actions
  • it changes the actions menu behaviour at the bottom part of the interface:
    • at first I was removing the actions menu entirely, because it was a repeat. But it is very helpful there
    • now I am removing just the delete issue from the bottom actions menu. If the user wants to delete the issue, he can use the button on the actions menu on the top.
Actions #9

Updated by Go MAEDA almost 3 years ago

+1

I have seen so many accidents that people accidentally delete an issue. In my observation, such accidents often occur in the following situations. I believe that the suggested change greatly reduces such accidents.

  • When trying to delete an issue comment which is displayed at the bottom, they misunderstand the "Delete" in the action menu at the bottom as a button to delete a comment
  • When trying to remove a relation to another issue, they misunderstand the "Delete" in the context menu as a menu item to remove the relation

I am attaching an updated patch. It uses an existing i18n string button_delete_object added by #34494 instead of adding a new string. Also, it updates tests.

Actions #10

Updated by Go MAEDA almost 3 years ago

  • Target version set to Candidate for next major release
Actions #11

Updated by Go MAEDA almost 3 years ago

  • Target version changed from Candidate for next major release to 5.0.0

Setting the target version to 5.0.0.

Actions #12

Updated by Go MAEDA almost 3 years ago

  • Subject changed from Change Delete button name to Delete Issue to Change Delete button name to Delete issue
  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch. Thank you for your contribution.

Actions #13

Updated by Holger Just almost 3 years ago

  • Has duplicate Defect #36585: Change "Delete" entry in issue context to "Delete issue(s)" added
Actions #14

Updated by Go MAEDA over 2 years ago

  • Tracker changed from Patch to Feature
Actions #15

Updated by Bernhard Rohloff almost 2 years ago

  • Related to Defect #38233: Broken spelling in context menus added
Actions

Also available in: Atom PDF