Forráskód Böngészése

- Display the actual code of each state next to its label. This is useful for writing OQL queries and also triggers.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@732 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 éve
szülő
commit
a749d6b66a
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      pages/schema.php

+ 2 - 2
pages/schema.php

@@ -186,7 +186,7 @@ function DisplayLifecycle($oPage, $sClass)
 		{
 			$sStateLabel = MetaModel::GetStateLabel($sClass, $sStateCode);
 			$sStateDescription = MetaModel::GetStateDescription($sClass, $sStateCode);
-			$oPage->add("<li title=\"code: $sStateCode\">$sStateLabel <span style=\"color:grey;\">($sStateDescription)</span></li>\n");
+			$oPage->add("<li title=\"code: $sStateCode\">$sStateLabel <span style=\"color:grey;\">($sStateCode) $sStateDescription</span></li>\n");
 			$oPage->add("<ul>\n");
 			foreach(MetaModel::EnumTransitions($sClass, $sStateCode) as $sStimulusCode => $aTransitionDef)
 			{
@@ -212,7 +212,7 @@ function DisplayLifecycle($oPage, $sClass)
 		{
 			$sStateLabel = MetaModel::GetStateLabel($sClass, $sStateCode);
 			$sStateDescription = MetaModel::GetStateDescription($sClass, $sStateCode);
-			$oPage->add("<li title=\"code: $sStateCode\">$sStateLabel <span style=\"color:grey;\">($sStateDescription)</span></li>\n");
+			$oPage->add("<li title=\"code: $sStateCode\">$sStateLabel <span style=\"color:grey;\">($sStateCode) $sStateDescription</span></li>\n");
 			if (count($aStates[$sStateCode]['attribute_list']) > 0)
 			{
 				$oPage->add("<ul>\n");