Skip to content

Commit

Permalink
Update Direct.php
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyMP authored Nov 9, 2023
1 parent 4e86244 commit a4668dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mapping/DataTarget/Direct.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected function checkAssignData($newData, $valueContainer, $getter)
$currentData = $valueContainer->$getter($this->language);
DataObject::setHideUnpublished($hideUnpublished);

$fieldName = lcfirst(str_replace('get', '', $getter));
$fieldName = $this->fieldName;
$fieldDefinition = $this->getFieldDefinition($valueContainer, $fieldName);
if ($this->writeIfTargetIsNotEmpty === false && !$fieldDefinition->isEmpty($currentData)) {
return false;
Expand Down

0 comments on commit a4668dd

Please sign in to comment.