浏览代码

- Fixed the display of "Notifications"
- Rolled back, not to display menus on linkedset when not in edition mode

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@775 a333f486-631f-4898-b8df-5754b55c2be0

dflaven 14 年之前
父节点
当前提交
839a0a4000
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      application/cmdbabstract.class.inc.php

+ 4 - 4
application/cmdbabstract.class.inc.php

@@ -224,7 +224,7 @@ abstract class cmdbAbstractObject extends CMDBObject
 					$aParams = array(
 						'target_attr' => $oAttDef->GetExtKeyToMe(),
 						'object_id' => $this->GetKey(),
-						'menu' => true,
+						'menu' => false,
 						'default' => $aDefaults,
 						);
 				}
@@ -240,7 +240,7 @@ abstract class cmdbAbstractObject extends CMDBObject
 							'object_id' => $this->GetKey(),
 							'target_attr' => $oAttDef->GetExtKeyToRemote(),
 							'view_link' => false,
-							'menu' => true,
+							'menu' => false,
 							'display_limit' => true, // By default limit the list to speed up the initial load & display
 						);
 				}
@@ -266,8 +266,8 @@ abstract class cmdbAbstractObject extends CMDBObject
 		
 				// Display notifications regarding the object
 				$iId = $this->GetKey();
-				$oNotifSet = new CMDBObjectSet(DBObjectSearch::FromOQL("SELECT EventNotificationEmail AS Ev JOIN TriggerOnObject AS T ON Ev.trigger_id = T.id WHERE T.target_class IN ('$sClassList') AND Ev.object_id = $iId"));
-				self::DisplaySet($oPage, $oNotifSet);
+				$oBlock = new DisplayBlock(DBObjectSearch::FromOQL("SELECT EventNotificationEmail AS Ev JOIN TriggerOnObject AS T ON Ev.trigger_id = T.id WHERE T.target_class IN ('$sClassList') AND Ev.object_id = $iId"), 'list', false);
+				$oBlock->Display($oPage, 'notifications', array());
 			}
 		}
 	}