opendcim / openDCIM

An open source (GPL v3) Data Center Inventory Management (DCIM) application.
http://opendcim.org
305 stars 204 forks source link

Delete connection leaves "front/rear" in the device port column until refresh #1455

Closed pentiumoverdrive closed 11 months ago

pentiumoverdrive commented 11 months ago

Delete connection leaves "front/rear" in the device port column until refresh and also leaves "Media Type" and "Color code" selected.

1 - Go to a device 2 - Delete a connection 3 - Device port says for instance "(Rear)" and if you click it there is an a popup stating "Error". 4 - Refresh the page in the browser and it goes away and disappears.

image

After you have deleted a connection, next time you edit the row, the Delete button saves whatever is in your drop down for "media type" and "Color code". Delete should never save whats in the drop down.

image image

I guess delete should remove the whole row, but in the end you are stuck with media type and color selected for non existent connection and you cant blank out the whole row.