diff --git a/forms/TextareaField.php b/forms/TextareaField.php
index 7510550a3..b8de19d7e 100755
--- a/forms/TextareaField.php
+++ b/forms/TextareaField.php
@@ -37,7 +37,10 @@ class TextareaField extends FormField {
$disabled = $this->disabled ? " disabled=\"disabled\"" : "";
$readonly = $this->readonly ? " readonly=\"readonly\"" : "";
- return "";
+ if( $this->readonly )
+ return "id() . "\" name=\"{$this->name}\" rows=\"{$this->rows}\" cols=\"{$this->cols}\">" . ( $this->value ? Convert::raw2att( $this->value ) : '(not set)' ) . "";
+ else
+ return "";
}
/**
@@ -63,5 +66,9 @@ class TextareaField extends FormField {
$this->readonly = false;
return $this;
}
+
+ function Type() {
+ return parent::Type() . ( $this->readonly ? ' readonly' : '' );
+ }
}
?>