Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/PhabricatorInlineCommentController.php
| Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | switch ($op) { | ||||
| } else { | } else { | ||||
| $inline->setIsEditing(true); | $inline->setIsEditing(true); | ||||
| if (strlen($text)) { | if (strlen($text)) { | ||||
| $inline->setContent($text); | $inline->setContent($text); | ||||
| } | } | ||||
| $this->saveComment($inline); | $this->saveComment($inline); | ||||
| if (strlen($text)) { | |||||
| $this->purgeVersionedDrafts($inline); | |||||
| } | |||||
| PhabricatorInlineComment::loadAndAttachVersionedDrafts( | |||||
| $viewer, | |||||
| array($inline)); | |||||
| } | } | ||||
| $edit_dialog = $this->buildEditDialog($inline) | $edit_dialog = $this->buildEditDialog($inline) | ||||
| ->setTitle(pht('Edit Inline Comment')); | ->setTitle(pht('Edit Inline Comment')); | ||||
| $view = $this->buildScaffoldForView($edit_dialog); | $view = $this->buildScaffoldForView($edit_dialog); | ||||
| return $this->newInlineResponse($inline, $view); | return $this->newInlineResponse($inline, $view); | ||||
| ▲ Show 20 Lines • Show All 217 Lines • Show Last 20 Lines | |||||