Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15379028
D8292.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
751 B
Referenced Files
None
Subscribers
None
D8292.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 14, 6:16 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223338
Default Alt Text
D8292.diff (751 B)
Attached To
Mode
D8292: Don't consider integer CustomFields as changed when the number doesn't change
Attached
Detach File
Event Timeline
Log In to Comment