You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/06/08 18:05:18 UTC

[GitHub] DaanHoogland closed pull request #2704: ui: fix create VPC dialog box failure when zone is SG enabled

DaanHoogland closed pull request #2704: ui: fix create VPC dialog box failure when zone is SG enabled
URL: https://github.com/apache/cloudstack/pull/2704
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 27579a7d73b..22ddb10d8cf 100644
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -5199,10 +5199,13 @@
                                                         }
                                                     };
 
-                                                    nuageDomainTemplateHandler(null, advZones[0].id);
-                                                    args.$select.bind('click', nuageDomainTemplateHandler); //bind on both events click, change, change event of dropdown.
-                                                    args.$select.bind('change', nuageDomainTemplateHandler);
-                                                    args.$form.find("[rel=nuageusedomaintemplate]").find("input").attr('checked', false);
+                                                    if (advZones && advZones.length > 0) {
+                                                        nuageDomainTemplateHandler(null, advZones[0].id);
+                                                        args.$select.bind('click', nuageDomainTemplateHandler); //bind on both events click, change, change event of dropdown.
+                                                        args.$select.bind('change', nuageDomainTemplateHandler);
+                                                        args.$form.find("[rel=nuageusedomaintemplate]").find("input").attr('checked', false);
+                                                    }
+
                                                     args.response.success({
                                                         data: $.map(advZones, function(zone) {
                                                             return {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services