mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +01: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:
parent
20e7f7d0e2
commit
93d8b33cca
1 changed files with 4 additions and 3 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue