diff --git a/src/applications/maniphest/xaction/ManiphestTaskTitleTransaction.php b/src/applications/maniphest/xaction/ManiphestTaskTitleTransaction.php --- a/src/applications/maniphest/xaction/ManiphestTaskTitleTransaction.php +++ b/src/applications/maniphest/xaction/ManiphestTaskTitleTransaction.php @@ -79,6 +79,7 @@ $xaction); continue; } + $xaction->setNewValue(trim($new)); // Strip surrounding whitespace if (mb_strlen($new) > $this->maximumTaskTitleLength) { $errors[] = $this->newInvalidError( pht('Task title cannot exceed %d characters.', diff --git a/src/applications/project/xaction/PhabricatorProjectNameTransaction.php b/src/applications/project/xaction/PhabricatorProjectNameTransaction.php --- a/src/applications/project/xaction/PhabricatorProjectNameTransaction.php +++ b/src/applications/project/xaction/PhabricatorProjectNameTransaction.php @@ -64,7 +64,6 @@ public function validateTransactions($object, array $xactions) { $errors = array(); - if ($this->isEmptyTextTransaction($object->getName(), $xactions)) { $errors[] = $this->newRequiredError(pht('Projects must have a name.')); } @@ -79,6 +78,7 @@ 'Project names must not be longer than %s character(s).', new PhutilNumber($max_length))); } + $xaction->setNewValue(trim($new_value)); // Strip surrounding whitespace } if ($this->getEditor()->getIsMilestone() || !$xactions) {