1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

Check for strlen instead of null for Maniphest title

Summary: Fixes T12744. Unclear why `null` doesn't work here but does for the title, but `!strlen` seems to work fine in both cases.

Test Plan: Create a new task, check mail folder, see [Created]

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T12744

Differential Revision: https://secure.phabricator.com/D18002
This commit is contained in:
Chad Little 2017-05-23 16:59:15 +00:00 committed by chad
parent 20e7f7d0e2
commit 93d8b33cca

View file

@ -19,8 +19,8 @@ final class ManiphestTaskTitleTransaction
public function getActionName() {
$old = $this->getOldValue();
$new = $this->getNewValue();
if ($old === null) {
if (!strlen($old)) {
return pht('Created');
}
@ -29,7 +29,8 @@ final class ManiphestTaskTitleTransaction
public function getTitle() {
$old = $this->getOldValue();
if ($old === null) {
if (!strlen($old)) {
return pht(
'%s created this task.',
$this->renderAuthor());