N°3260 - Fix rendering of an ExternalField on a Text with XML content (format transitivity)

This commit is contained in:
Eric
2020-09-02 18:15:31 +02:00
parent 92e0f101d7
commit 7107c2f616

View File

@@ -7473,6 +7473,16 @@ class AttributeExternalField extends AttributeDefinition
{
return false;
}
public function GetFormat()
{
$oRemoteAttDef = $this->GetExtAttDef();
if (method_exists($oRemoteAttDef, 'GetFormat')) {
/** @var \Combodo\iTop\Form\Field\TextAreaField $oFormField */
return $oRemoteAttDef->GetFormat();
}
return 'text';
}
}