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)

(cherry picked from commit 7cacb2981a3ecf28c7a72de83136985769a3f966)
This commit is contained in:
Sergio Betanzos 2021-04-06 19:27:51 +02:00 committed by Ruben S. Montero
parent 8f63d20442
commit bca73fb1dd
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

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(",");