1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #5318: Fix context section in vn template form (#1072)

This commit is contained in:
Sergio Betanzos 2021-04-06 19:27:51 +02:00 committed by GitHub
parent 0d7959c296
commit 7cacb2981a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,6 +91,7 @@ define(function(require) {
function _setup(context) {
this.arTemplates = [];
CustomTagsTable.setup(context)
}
function _submitWizard(context) {
@ -116,6 +117,8 @@ define(function(require) {
$.extend(extra_info["template"], WizardFields.retrieve($("#instantiateContext", context)));
$.extend(extra_info["template"], CustomTagsTable.retrieve(context));
var secgroups = that.securityGroupsTable.retrieveResourceTableSelect();
if (secgroups != undefined && secgroups.length != 0) {
extra_info["template"]["SECURITY_GROUPS"] = secgroups.join(",");