Page MenuHomePhabricator

D17150.id.diff
No OneTemporary

D17150.id.diff

diff --git a/src/applications/calendar/xaction/PhabricatorCalendarEventDateTransaction.php b/src/applications/calendar/xaction/PhabricatorCalendarEventDateTransaction.php
--- a/src/applications/calendar/xaction/PhabricatorCalendarEventDateTransaction.php
+++ b/src/applications/calendar/xaction/PhabricatorCalendarEventDateTransaction.php
@@ -23,6 +23,14 @@
}
public function getTransactionHasEffect($object, $old, $new) {
+ // If either value is `null` (for example, when setting a recurring event
+ // end date for the first time) and the other value is not `null`, this
+ // transaction has an effect.
+ $has_null = (($old === null) || ($new === null));
+ if ($has_null) {
+ return ($old !== $new);
+ }
+
$editor = $this->getEditor();
$actor = $this->getActor();

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 27, 11:47 PM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7381533
Default Alt Text
D17150.id.diff (810 B)

Event Timeline