Skip to content

Commit ef14e19

Browse files
author
Daan Hoogland
committed
Merge release branch 4.13 to master
* 4.13: UI bug fix: Cannot deploy VM from ISO (#3995)
2 parents 66f5ecf + 95f58db commit ef14e19

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

ui/scripts/instanceWizard.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -965,14 +965,16 @@
965965
}
966966
});
967967

968-
$.ajax({
969-
url: createURL("listTemplateOvfProperties&id=" + selectedTemplateObj.id),
970-
dataType: "json",
971-
async: false,
972-
success: function(json) {
973-
ovfProps = json.listtemplateovfpropertiesresponse.ovfproperty;
974-
}
975-
});
968+
if (selectedTemplateObj) {
969+
$.ajax({
970+
url: createURL("listTemplateOvfProperties&id=" + selectedTemplateObj.id),
971+
dataType: "json",
972+
async: false,
973+
success: function(json) {
974+
ovfProps = json.listtemplateovfpropertiesresponse.ovfproperty;
975+
}
976+
});
977+
}
976978

977979
var $step = $('.step.sshkeyPairs:visible');
978980
if (ovfProps == null || ovfProps.length === 0) {

0 commit comments

Comments
 (0)