Bug in selected server display in drop-down after deleting a server: danger of deleting wrong one when deleting 2 in a row

This is a pretty dangerous UI bug:

To reproduce:

Have 3 or more virtual servers, and as root admin:

a.com b.com c.com

Disable them all, as bug seems to be particularly affecting disabled sites.

You want to delete b.com and c.com, but not a.com !!! so:

Select b.com with drop-down

Delete and Disable -> Delete it and confirm deletion.

After that, in c.com is selected in drop-down

Select Delete and Disable -> Delete

OOOhh : now in drop-down c.com was selected but it's NOT c.com that is proposed for deletion but a.com !!!!!!!!!!

"wt." almost deleted a.com omg...

I guess the bug is in the display of the drop-down, but actually, the drop-down behavior is the wanted one... after deleting a domain, you really want the next one being selected...BUT FOR REAL, not fake ;-)

Anyway, lucky me, I read Warnings before clicking OK, and i had my first coffee to open eyes...

Status: 
Closed (fixed)

Comments

I need to add that this bug seems to only happen with disabled servers. Editing description above.

Ok, thanks for the bug report .. I think I can see how this could happen. I will fix it in the next Virtualmin theme package release (7.8)

Automatically closed -- issue fixed for 2 weeks with no activity.