mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
IP Address page - fix a bug "networkObj is undefined" when login as user-role.
This commit is contained in:
parent
318a5c7d0c
commit
7843b30ff2
@ -1001,6 +1001,8 @@ function ipJsonToDetailsTab() {
|
||||
}
|
||||
|
||||
function ipFindNetworkServiceByName(pName, networkObj) {
|
||||
if(networkObj == null)
|
||||
return null;
|
||||
for(var i=0; i<networkObj.service.length; i++) {
|
||||
var networkServiceObj = networkObj.service[i];
|
||||
if(networkServiceObj.name == pName)
|
||||
@ -1010,6 +1012,8 @@ function ipFindNetworkServiceByName(pName, networkObj) {
|
||||
}
|
||||
|
||||
function ipFindCapabilityByName(pName, networkServiceObj) {
|
||||
if(networkServiceObj == null)
|
||||
return null;
|
||||
for(var i=0; i<networkServiceObj.capability.length; i++) {
|
||||
var capabilityObj = networkServiceObj.capability[i];
|
||||
if(capabilityObj.name == pName)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user