1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 01:02:42 +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') ->setID('comment-content')
->setLabel('Comment') ->setLabel('Comment')
->setEnableDragAndDropFileUploads(true) ->setEnableDragAndDropFileUploads(true)
->setValue($this->draft->getDraft())) ->setValue($this->draft ? $this->draft->getDraft() : null))
->appendChild( ->appendChild(
id(new AphrontFormSubmitControl()) id(new AphrontFormSubmitControl())
->setValue($is_serious ? 'Submit' : 'Clowncopterize')); ->setValue($is_serious ? 'Submit' : 'Clowncopterize'));