Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some mass actions in Orders grid don't have a confirmation dialog #2323

Closed
elidrissidev opened this issue Jul 16, 2022 · 5 comments · Fixed by #2814
Closed

Some mass actions in Orders grid don't have a confirmation dialog #2323

elidrissidev opened this issue Jul 16, 2022 · 5 comments · Fixed by #2814
Assignees
Labels

Comments

@elidrissidev
Copy link
Member

Two days ago one of our team members accidentally canceled all pending orders thinking he applied an email filter. Luckily there were only a few orders at that time and we were able to un-cancel them quickly.

I think that in general all grids should have a confirmation dialog for potentially dangerous/destructive actions to protect from accidents like these. Any other suggestions to solve this are welcomed.

Preconditions (*)

  1. Any version of OpenMage.

Steps to reproduce (*)

  1. Go to Sales -> Orders and select some orders from the grid.
  2. Choose "Cancel" or "Hold" action and click "Submit".

Expected result (*)

  1. There should be a confirmation dialog for potentially dangerous or destructive actions such as canceling orders.

Actual result (*)

  1. Actions are submitted without any confirmation.
@elidrissidev
Copy link
Member Author

I don't know how feasible it is to also show in the confirmation dialog how many orders the action will apply to, that would help too.

@kiatng
Copy link
Collaborator

kiatng commented Jul 16, 2022

We removed the cancel item years ago

/** @var Mage_Adminhtml_Block_Sales_Order_Grid $this */
$this->getMassactionBlock()->removeItem('cancel_order');
$this->getMassactionBlock()->removeItem('hold_order'');

@fballiano
Copy link
Contributor

Some mass actions can be really dangerous so it would be nice to have a confirmation prompt, also a "are you sure?" is better than nothing.
But if we think about it... probably all mass actions are dangerous so should they all have a confirmation? But if we add a confirmation to every mass action... it's kinda like adding none since the users will get used to it and stop reading it.

So I really don't know what I would do here.

@alexh-swdev
Copy link
Contributor

alexh-swdev commented Sep 16, 2022

Funny, today morning, I also thought: It would be really helpful to at least get reminded about the number of selected items this mass action affects. (e.g. when mixing up "select visible" and "select all")
Dangerous enough would be, in my opinion: delete and cancel.

/Edit: Or how about a warning, when "select all" is clicked?

@elidrissidev
Copy link
Member Author

@daboss84 Yeah, there's many different ways to tackle this, a warning will be a good first step. I will add this to my hacktober contributions list if no one picks it.

@elidrissidev elidrissidev removed the Component: Sales Relates to Mage_Sales label Sep 23, 2022
@elidrissidev elidrissidev added the good first issue easy to solve issues label Nov 26, 2022
@sreichel sreichel self-assigned this Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants