- 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

@@ -537,11 +537,10 @@ class DBObjectSet
public function ComputeCommonObject(&$aValues)
{
$sClass = $this->GetClass();
$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();
@@ -550,9 +549,8 @@ class DBObjectSet
$this->Rewind();
while($oObj = $this->Fetch())
{
foreach($aList as $sAttCode)
foreach($aList as $sAttCode => $oAttDef)
{
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
if ($oAttDef->IsScalar() && $oAttDef->IsWritable())
{
$currValue = $oObj->Get($sAttCode);
@@ -586,9 +584,8 @@ class DBObjectSet
$sReadyScript = '';
$aDependsOn = array();
$sFormPrefix = '2_';
foreach($aList as $sAttCode)
foreach($aList as $sAttCode => $oAttDef)
{
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
if ($oAttDef->IsScalar() && $oAttDef->IsWritable())
{
if ($oAttDef->GetEditClass() == 'One Way Password')