Page MenuHomePhorge

D25759.1736700350.diff
No OneTemporary

D25759.1736700350.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
Sun, Jan 12, 16:45 (5 d, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1112640
Default Alt Text
D25759.1736700350.diff (883 B)

Event Timeline