- Special handling (using some custom code - temporary solution) of the 'ticket_log' attribute: the attribute is displayed at the bottom of the "Properties" page and takes the whole width of the page.

SVN:trunk[1193]
This commit is contained in:
Denis Flaven
2011-04-08 10:22:18 +00:00
parent 4b1726c1ca
commit 037d6cc4ba
14 changed files with 213 additions and 37 deletions

View File

@@ -818,11 +818,10 @@ try
$oSet = new CMDBObjectSet(DBObjectSearch::FromOQL($sOQL));
// Compute the distribution of the values for each field to determine which of the "scalar" fields are homogenous
$aList = MetaModel::FlattenZlist(MetaModel::GetZListItems($sClass, 'details'));
$aList = MetaModel::ListAttributeDefs($sClass);
$aValues = array();
foreach($aList as $sAttCode)
foreach($aList as $sAttCode => $oAttDef)
{
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
if ($oAttDef->IsScalar())
{
$aValues[$sAttCode] = array();
@@ -830,9 +829,8 @@ try
}
while($oObj = $oSet->Fetch())
{
foreach($aList as $sAttCode)
foreach($aList as $sAttCode => $oAttDef)
{
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
if ($oAttDef->IsScalar() && $oAttDef->IsWritable())
{
$currValue = $oObj->Get($sAttCode);
@@ -864,9 +862,8 @@ try
$sReadyScript = '';
$aDependsOn = array();
$sFormPrefix = '2_';
foreach($aList as $sAttCode)
foreach($aList as $sAttCode => $oAttDef)
{
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
$aPrerequisites = MetaModel::GetPrequisiteAttributes($sClass, $sAttCode); // List of attributes that are needed for the current one
if (count($aPrerequisites) > 0)
{