1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 07:12:41 +01:00

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:
epriestley 2013-01-25 08:13:08 -08:00
parent fc6838b890
commit 94da7c2033

View file

@ -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());
}
}