mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Form : Started fix on CaseLog field in the portal. Only the edit value is now in the editor. Still have to display the history below.
SVN:trunk[3961]
This commit is contained in:
@@ -2918,6 +2918,17 @@ class AttributeCaseLog extends AttributeLongText
|
||||
{
|
||||
return $this->GetOptional('format', 'html'); // default format for case logs is now HTML
|
||||
}
|
||||
|
||||
public function MakeFormField(DBObject $oObject, $oFormField = null)
|
||||
{
|
||||
// First we call the parent so the field is build
|
||||
$oFormField = parent::MakeFormField($oObject, $oFormField);
|
||||
// Then only we set the value
|
||||
$oFormField->SetCurrentValue($this->GetEditValue($oObject->Get($this->GetCode())));
|
||||
|
||||
return $oFormField;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user