Explorar o código

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.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3961 a333f486-631f-4898-b8df-5754b55c2be0
glajarige %!s(int64=9) %!d(string=hai) anos
pai
achega
f4225c9dcb
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      core/attributedef.class.inc.php

+ 11 - 0
core/attributedef.class.inc.php

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