Skip to content

Commit

Permalink
Shared Network was not getting selected in Port edit.
Browse files Browse the repository at this point in the history
The shared network was not geting selected in the dropdown of the network in
Port page.
When we do a edit of a port with shared network it was getting edited with the
shared network not getting selected but the network was disabled.

and also fixed  "Port creation fails with shared network" issue

Reason:
The function formatCurrentFQName was modifing the value passed to the function
because of that the variable in the parent function is modified.

Fixed:
Made a clone of the function so the the parent function values are safe and not
changed.

Change-Id: Id4a66b03c65a5b2b8b9cf5ed56d63bc504c45afe
Closes-Bug: #1550385
  • Loading branch information
balamurugang authored and sbavanasi committed Apr 26, 2016
1 parent 7b98bcd commit 57e3fff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webroot/common/ui/js/controller.utils.js
Expand Up @@ -513,8 +513,9 @@ define([
// currentDomainProject as string format domain:project
// if currentDomainProject is empty it will try taking utilVariable
// Output will be in the format "element(domain:project)"
this.formatCurrentFQName = function(fqname, currentDomainProject){
this.formatCurrentFQName = function(argFqname, currentDomainProject){
var domain = "", project = "";
var fqname = _.clone(argFqname)
if(currentDomainProject != null && currentDomainProject != ""){
var domainProjectArr = currentDomainProject.split(":");
if(domainProjectArr == 2) {
Expand Down

0 comments on commit 57e3fff

Please sign in to comment.