From 96141c3ef7c1fcf75ac1ce422616c780a0e1a4d0 Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 20 Oct 2026 20:34:23 +0300 Subject: [PATCH] fix(instances): a refused custom VM form comes back with its disks and networks A refused custom create form came back with its image pool unselected and its disk and network lists empty: every disk's device and bus and every MAC had to be chosen again. Adding a disk or a network also reset the rows already there: each addition rebuilt all rows from an HTML string, so the earlier disks fell back to the default device and bus and every NIC got a new random MAC, a typed one included. The view sends the submitted pool, disks (volume, device, bus) and networks (name, MAC) back with json_script, built field by field from the POST (submitted_custom_lists). The rows are cloned from two