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:
Guillaume Lajarige
2016-03-18 15:04:49 +00:00
parent 414b94405b
commit 24fcb20927

View File

@@ -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;
}
}
/**