Bug With Cm-Confirm?

I am enabling the "confirm" flag within the select_popup.tpl to have the user confirm a change in the product status while on the products.manage controller. However, even though the confirmation message is displayed, and it is functionally working (when selecting no changes are not saved). Visually the selection still changes which I believe is a bug.

So for example,

  1. The user changes the product status from Active to Hidden.
  2. A message requesting confirmation is shown
  3. The user cancels
  4. Changes are not saved (intended)
  5. Visually it looks as if the change was made (bug?)
  6. Refreshing the page shows that the changes were not actually performed (intended)

My question is, is cm-confirm just not meant to be used here, or is this a bug?

It seems, this has not been fixed yet

In case anybody needs this:

I managed to add a confirmation alert for order status change (same as cm-confirm) by:

- creating my own select_popup.tpl by using an addon

- not using the cm-confirm helper

- replacing (in the custom select_popup.tpl) :

onclick="return fn_check_object_status(this, '{$st|lower}', '{if $statuses}{$statuses[$st].params.color|default:''}{/if}');"

with:

onclick="return li_click(event, this, '{$st|lower}', '{if $statuses}{$statuses[$st].params.color|default:''}{/if}', '{__($confirmText,['[status]'=>$val])|escape}')"

and the li_click function: