This was unintentionally removed in I8df2fd98.
Bug: T218110
Change-Id: Ie8678b4207032d6eb877d596eb8f115798c80a1e
// 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' ) {