B #5543: Clear OPENNEBULA_MANAGED attribute (#1495)

on change disk image

(cherry picked from commit d4fc5cb14a86ea63c3b2165bf023aa13bb3b3fee)
This commit is contained in:
Frederick Borges authored and Tino Vazquez committed 2021-09-29 12:54:11 +02:00
1 parent 9b517302c0
commit 37ed63f720
1 file changed
+1
@@ -87,6 +87,7 @@ define(function(require) {
"select_callback": function(aData, options) {
// If the image is selected by Id, avoid overwriting it with name+uname
if ($("#IMAGE_ID", context).val() != aData[options.id_index]) {
$("#OPENNEBULA_MANAGED", context).val("");
$("#IMAGE_ID", context).val("");
$("#IMAGE", context).val(aData[options.name_index]);
$("#IMAGE_UNAME", context).val(aData[options.uname_index]);