Page MenuHomePhabricator

D10549.diff
No OneTemporary

D10549.diff

diff --git a/src/applications/differential/customfield/DifferentialRepositoryField.php b/src/applications/differential/customfield/DifferentialRepositoryField.php
--- a/src/applications/differential/customfield/DifferentialRepositoryField.php
+++ b/src/applications/differential/customfield/DifferentialRepositoryField.php
@@ -107,19 +107,25 @@
$old = $xaction->getOldValue();
$new = $xaction->getNewValue();
- if ($old) {
+ if ($old && $new) {
return pht(
'%s updated the repository for %s from %s to %s.',
$xaction->renderHandleLink($author_phid),
$xaction->renderHandleLink($object_phid),
$xaction->renderHandleLink($old),
$xaction->renderHandleLink($new));
- } else {
+ } else if ($new) {
return pht(
'%s set the repository for %s to %s.',
$xaction->renderHandleLink($author_phid),
$xaction->renderHandleLink($object_phid),
$xaction->renderHandleLink($new));
+ } else {
+ return pht(
+ '%s removed the repository for %s. (Repository was %s.)',
+ $xaction->renderHandleLink($author_phid),
+ $xaction->renderHandleLink($object_phid),
+ $xaction->renderHandleLink($old));
}
}

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 3, 3:30 PM (22 h, 6 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6666883
Default Alt Text
D10549.diff (1 KB)

Event Timeline