From 1da4a38757e2bc0b172f38f370113907c10dd4d8 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Tue, 12 Mar 2019 10:55:27 -0400 Subject: [PATCH] LogEntry: Restore logic to add change tags on udp-only publish This was unintentionally removed in I8df2fd98. Bug: T218110 Change-Id: Ie8678b4207032d6eb877d596eb8f115798c80a1e --- includes/logging/LogEntry.php | 6 ++++++ 1 file changed, 6 insertions(+) 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' ) { -- 2.20.1