Page MenuHomePhorge

D25759.1734724766.diff
No OneTemporary

D25759.1734724766.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
@@ -4,6 +4,7 @@
extends ManiphestTaskTransactionType {
const TRANSACTIONTYPE = 'title';
+ private $maximumTaskTitleLength = 255;
public function generateOldValue($object) {
return $object->getTitle();
@@ -78,6 +79,13 @@
$xaction);
continue;
}
+ if (mb_strlen($new) > $this->maximumTaskTitleLength) {
+ $errors[] = $this->newInvalidError(
+ pht('Task title cannot exceed %d characters.',
+ $this->maximumTaskTitleLength),
+ $xaction);
+ continue;
+ }
}
if (!$errors) {

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 19:59 (13 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1018695
Default Alt Text
D25759.1734724766.diff (883 B)

Event Timeline