Page MenuHomePhorge

D25835.1730395467.diff
No OneTemporary

D25835.1730395467.diff

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) {

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 31, 17:24 (21 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
954207
Default Alt Text
D25835.1730395467.diff (1 KB)

Event Timeline