Page MenuHomePhabricator

D8292.diff
No OneTemporary

D8292.diff

Index: src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php
===================================================================
--- src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php
+++ src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php
@@ -95,4 +95,19 @@
return $errors;
}
+ public function getApplicationTransactionHasEffect(
+ PhabricatorApplicationTransaction $xaction) {
+
+ $old = $xaction->getOldValue();
+ $new = $xaction->getNewValue();
+ if (!strlen($old) && strlen($new)) {
+ return true;
+ } else if (strlen($old) && !strlen($new)) {
+ return true;
+ } else {
+ return ((int)$old !== (int)$new);
+ }
+ }
+
+
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jun 20, 1:51 AM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6294284
Default Alt Text
D8292.diff (751 B)

Event Timeline