1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Fix add comment view with no draft

This commit is contained in:
vrana 2012-09-22 15:10:37 -07:00
parent 49f75d2554
commit 0248c74914

View file

@ -134,7 +134,7 @@ final class DifferentialAddCommentView extends AphrontView {
->setID('comment-content')
->setLabel('Comment')
->setEnableDragAndDropFileUploads(true)
->setValue($this->draft->getDraft()))
->setValue($this->draft ? $this->draft->getDraft() : null))
->appendChild(
id(new AphrontFormSubmitControl())
->setValue($is_serious ? 'Submit' : 'Clowncopterize'));