Fix add comment view with no draft
This commit is contained in:
@@ -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'));
|
||||||
|
|||||||
Reference in New Issue
Block a user