Lucas Werkmeister (WMDE) has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/365087 )
Change subject: Fix “Target required claim” error message
......................................................................
Fix “Target required claim” error message
The entity that is required to have a claim can be a property, so we
should not assume that its ID is an item ID. Since $targetEntityId is an
EntityId object, not a string, we should directly use formatEntityId()
anyways (formatItemId() optionally parses a string argument into an
ItemId, but we know we have an EntityId object).
Bug: T170597
Change-Id: Ic662eb7f7c46e278e4543051ccc9496042f0f759
---
M includes/ConstraintCheck/Checker/TargetRequiredClaimChecker.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseQualityConstraints
refs/changes/87/365087/1
diff --git a/includes/ConstraintCheck/Checker/TargetRequiredClaimChecker.php
b/includes/ConstraintCheck/Checker/TargetRequiredClaimChecker.php
index aa12e52..659d007 100644
--- a/includes/ConstraintCheck/Checker/TargetRequiredClaimChecker.php
+++ b/includes/ConstraintCheck/Checker/TargetRequiredClaimChecker.php
@@ -134,7 +134,7 @@
} else {
$message = wfMessage(
'wbqc-violation-message-target-required-claim' );
$message->rawParams(
-
$this->constraintParameterRenderer->formatItemId( $targetEntityId ),
+
$this->constraintParameterRenderer->formatEntityId( $targetEntityId ),
$this->constraintParameterRenderer->formatEntityId( $propertyId )
);
$message->numParams( count( $items ) );
--
To view, visit https://gerrit.wikimedia.org/r/365087
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic662eb7f7c46e278e4543051ccc9496042f0f759
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints
Gerrit-Branch: master
Gerrit-Owner: Lucas Werkmeister (WMDE) <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits