Addshore has uploaded a new change for review.

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


Change subject: Fix claim weirdness
......................................................................

Fix claim weirdness

Change-Id: I8b961c297fb8de918ec7770bcec2ae59266d783b
---
M repo/includes/ChangeOp/ChangeOpClaim.php
1 file changed, 2 insertions(+), 2 deletions(-)


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

diff --git a/repo/includes/ChangeOp/ChangeOpClaim.php 
b/repo/includes/ChangeOp/ChangeOpClaim.php
index 0f4576e..ea34183 100644
--- a/repo/includes/ChangeOp/ChangeOpClaim.php
+++ b/repo/includes/ChangeOp/ChangeOpClaim.php
@@ -75,8 +75,8 @@
                }
 
                $claims = new Claims( $entity->getClaims() );
-               if( $claims->hasClaimWithGuid( $guid->getSerialization() ) ){
-                       $claims->removeClaimWithGuid( $guid->getSerialization() 
);
+               if( $claims->hasClaimWithGuid( $this->claim->getGuid() ) ){
+                       $claims->removeClaimWithGuid( $this->claim->getGuid() );
                        $this->updateSummary( $summary, 'update' );
                } else {
                        $this->updateSummary( $summary, 'create' );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8b961c297fb8de918ec7770bcec2ae59266d783b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Addshore <addshorew...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to