From 2aff8ce2daf0fccff63a51af313471ca290085bf Mon Sep 17 00:00:00 2001 From: Dennis Diefenbach Date: Fri, 22 Feb 2019 10:30:59 +0100 Subject: [PATCH] Entity is also imported if there exists already an entity with the same label in one language --- src/EntityImporter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/EntityImporter.php b/src/EntityImporter.php index ad84fd3..bfd38b4 100644 --- a/src/EntityImporter.php +++ b/src/EntityImporter.php @@ -10,6 +10,7 @@ use Wikibase\DataModel\Entity\Item; use Wikibase\DataModel\Snak\PropertyValueSnak; use Wikibase\DataModel\Statement\StatementList; +use Wikibase\EntityContent; use Wikibase\Import\Store\ImportedEntityMappingStore; use Wikibase\Lib\Store\EntityStore; @@ -140,7 +141,7 @@ private function createEntity( EntityDocument $entity ) { $entity, 'Import entity', $this->importUser, - EDIT_NEW + EDIT_NEW | EntityContent::EDIT_IGNORE_CONSTRAINTS ); }