From: Brad Jorsch Date: Tue, 12 Mar 2019 14:55:27 +0000 (-0400) Subject: LogEntry: Restore logic to add change tags on udp-only publish X-Git-Tag: 1.34.0-rc.0~2548^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=1da4a38757e2bc0b172f38f370113907c10dd4d8;p=lhc%2Fweb%2Fwiklou.git LogEntry: Restore logic to add change tags on udp-only publish This was unintentionally removed in I8df2fd98. Bug: T218110 Change-Id: Ie8678b4207032d6eb877d596eb8f115798c80a1e --- diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php index 35f1a06b2e..a154f642e3 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -785,6 +785,12 @@ class ManualLogEntry extends LogEntryBase { // save RC, passing tags so they are applied there $rc->addTags( $this->getTags() ); $rc->save( $rc::SEND_NONE ); + } else { + $tags = $this->getTags(); + if ( $tags ) { + $revId = $this->getAssociatedRevId(); // Use null if $revId is 0 + ChangeTags::addTags( $tags, null, $revId > 0 ? $revId : null, $newId ); + } } if ( $to === 'udp' || $to === 'rcandudp' ) {