Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/repository/xaction/PhabricatorRepositorySVNSubpathTransaction.php b/src/applications/repository/xaction/PhabricatorRepositorySVNSubpathTransaction.php
index 10de2d9980..43ebefa015 100644
--- a/src/applications/repository/xaction/PhabricatorRepositorySVNSubpathTransaction.php
+++ b/src/applications/repository/xaction/PhabricatorRepositorySVNSubpathTransaction.php
@@ -1,39 +1,39 @@
<?php
final class PhabricatorRepositorySVNSubpathTransaction
extends PhabricatorRepositoryTransactionType {
const TRANSACTIONTYPE = 'repo:svn-subpath';
public function generateOldValue($object) {
return $object->getDetail('svn-subpath');
}
public function applyInternalEffects($object, $value) {
$object->setDetail('svn-subpath', $value);
}
public function getTitle() {
$old = $this->getOldValue();
$new = $this->getNewValue();
- if (!strlen($new)) {
+ if ($new === null || !strlen($new)) {
return pht(
'%s removed %s as the "Import Only" path.',
$this->renderAuthor(),
$this->renderOldValue());
- } else if (!strlen($old)) {
+ } else if ($old === null || !$old) {
return pht(
'%s set the repository "Import Only" path to %s.',
$this->renderAuthor(),
$this->renderNewValue());
} else {
return pht(
'%s changed the "Import Only" path from %s to %s.',
$this->renderAuthor(),
$this->renderOldValue(),
$this->renderNewValue());
}
}
}

File Metadata

Mime Type
text/x-diff
Expires
Tue, Nov 26, 12:31 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1194
Default Alt Text
(1 KB)

Event Timeline