Skip to content

Commit 3cbd9fb

Browse files
authored
Merge pull request #43 from visol-forks/bugfix/property-check-strict-comparison
BUGFIX: When translating, use strict comparison for checking identical property values
2 parents 035b096 + d7e3f5a commit 3cbd9fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/ContentRepository/NodeTranslationService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function translateNode(NodeInterface $sourceNode, NodeInterface $targetNo
218218
$propertyValue = $this->nodeUriPathSegmentGenerator->generateUriPathSegment(null, $propertyValue);
219219
}
220220

221-
if ($targetNode->getProperty($propertyName) != $propertyValue) {
221+
if ($targetNode->getProperty($propertyName) !== $propertyValue) {
222222
$targetNode->setProperty($propertyName, $propertyValue);
223223
}
224224
}

0 commit comments

Comments
 (0)