Restore string cast for textarea control
Summary: Removed in 48561a8b but actually necessary.
Test Plan: Differential now renders textareas correctly.
Reviewers: vrana
Reviewed By: vrana
CC: aran
Differential Revision: https://secure.phabricator.com/D4643
This commit is contained in:
@@ -72,7 +72,9 @@ class AphrontFormTextAreaControl extends AphrontFormControl {
|
||||
'id' => $this->getID(),
|
||||
'placeholder' => $this->getPlaceHolder(),
|
||||
),
|
||||
$this->getValue());
|
||||
// NOTE: This needs to be string cast, because if we pass `null` the
|
||||
// tag will be self-closed and some browsers aren't thrilled about that.
|
||||
(string)$this->getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user