Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/232037

Change subject: Api summary parameter should not override auto comment
......................................................................

Api summary parameter should not override auto comment

This change means that we will always show the auto
comment and as much of the user provided summary
as possible when given

Bug: T97247
Change-Id: Ia375a67185c0b320cf03ae8fcc0db2a08d0d094e
---
M repo/includes/SummaryFormatter.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/37/232037/1

diff --git a/repo/includes/SummaryFormatter.php 
b/repo/includes/SummaryFormatter.php
index a453b4b..d16fffc 100644
--- a/repo/includes/SummaryFormatter.php
+++ b/repo/includes/SummaryFormatter.php
@@ -281,7 +281,7 @@
                $userSummary = $summary->getUserSummary();
 
                if ( !is_null( $userSummary ) ) {
-                       $autoSummary = $userSummary;
+                       $autoSummary = self::formatAutoSummary( $summary ) . ': 
' . $userSummary;
                } else {
                        $autoSummary = self::formatAutoSummary( $summary );
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/232037
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia375a67185c0b320cf03ae8fcc0db2a08d0d094e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to