Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15332541
D19283.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D19283.diff
View Options
diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php
--- a/src/applications/differential/editor/DifferentialTransactionEditor.php
+++ b/src/applications/differential/editor/DifferentialTransactionEditor.php
@@ -1597,13 +1597,13 @@
$was_draft = $this->wasDraft;
if (!$object->isDraft() && ($was_draft || $is_new)) {
- if (!$object->getHasBroadcast()) {
+ if (!$object->getShouldBroadcast()) {
// Mark this as the first broadcast we're sending about the revision
// so mail can generate specially.
$this->firstBroadcast = true;
$object
- ->setHasBroadcast(true)
+ ->setShouldBroadcast(true)
->save();
}
}
diff --git a/src/applications/differential/storage/DifferentialRevision.php b/src/applications/differential/storage/DifferentialRevision.php
--- a/src/applications/differential/storage/DifferentialRevision.php
+++ b/src/applications/differential/storage/DifferentialRevision.php
@@ -59,7 +59,7 @@
const PROPERTY_CLOSED_FROM_ACCEPTED = 'wasAcceptedBeforeClose';
const PROPERTY_DRAFT_HOLD = 'draft.hold';
- const PROPERTY_HAS_BROADCAST = 'draft.broadcast';
+ const PROPERTY_SHOULD_BROADCAST = 'draft.broadcast';
const PROPERTY_LINES_ADDED = 'lines.added';
const PROPERTY_LINES_REMOVED = 'lines.removed';
const PROPERTY_BUILDABLES = 'buildables';
@@ -717,12 +717,14 @@
return $this->setProperty(self::PROPERTY_DRAFT_HOLD, $hold);
}
- public function getHasBroadcast() {
- return $this->getProperty(self::PROPERTY_HAS_BROADCAST, false);
+ public function getShouldBroadcast() {
+ return $this->getProperty(self::PROPERTY_SHOULD_BROADCAST, false);
}
- public function setHasBroadcast($has_broadcast) {
- return $this->setProperty(self::PROPERTY_HAS_BROADCAST, $has_broadcast);
+ public function setShouldBroadcast($should_broadcast) {
+ return $this->setProperty(
+ self::PROPERTY_SHOULD_BROADCAST,
+ $should_broadcast);
}
public function setAddedLineCount($count) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 8, 5:48 PM (2 w, 12 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7383583
Default Alt Text
D19283.diff (2 KB)
Attached To
Mode
D19283: Rename the Differential "hasBroadcast" flag to "shouldBroadcast"
Attached
Detach File
Event Timeline
Log In to Comment