Browse Source

Fixed the display of 'Used IP Addresses' (i.e. Network interfaces) in the details of a Subnet object.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1449 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 years ago
parent
commit
fb48355c6a
1 changed files with 4 additions and 2 deletions
  1. 4 2
      modules/itop-config-mgmt-1.0.0/model.itop-config-mgmt.php

+ 4 - 2
modules/itop-config-mgmt-1.0.0/model.itop-config-mgmt.php

@@ -459,8 +459,10 @@ class Subnet extends cmdbAbstractObject
 	
 	
 			$oPage->p(Dict::Format('Class:Subnet/Tab:IPUsage-explain', $sIPMin, $sIPMax));
 			$oPage->p(Dict::Format('Class:Subnet/Tab:IPUsage-explain', $sIPMin, $sIPMax));
 			
 			
-			$oIfSet = new CMDBObjectSet(DBObjectSearch::FromOQL("SELECT NetworkInterface AS if WHERE INET_ATON(if.ip_address) >= INET_ATON('$sIPMin') AND INET_ATON(if.ip_address) <= INET_ATON('$sIPMax')"));
-			self::DisplaySet($oPage, $oIfSet, array('block_id' => 'nwif'));
+			$oIfFilter = DBObjectSearch::FromOQL("SELECT NetworkInterface AS if WHERE INET_ATON(if.ip_address) >= INET_ATON('$sIPMin') AND INET_ATON(if.ip_address) <= INET_ATON('$sIPMax')");
+			$oIfSet = new CMDBObjectSet($oIfFilter);
+			$oBlock = new DisplayBlock($oIfFilter, 'list', false);
+			$oBlock->Display($oPage, 'nwif', array('menu' => false));
 	
 	
 			$iCountUsed = $oIfSet->Count();
 			$iCountUsed = $oIfSet->Count();
 			$iCountRange = $iIPMax - $iIPMin;
 			$iCountRange = $iIPMax - $iIPMin;