Skip to content

Commit

Permalink
DD-Contact Data Export Improvement (#633)
Browse files Browse the repository at this point in the history
* added the use of default attribute values when no attribute value defined
  • Loading branch information
pavelshulga authored Oct 3, 2024
1 parent 1196bb4 commit 9fccc9d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Model/Connector/ContactData.php
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,15 @@ private function getValue($attributeCode)

default:
//Text, Dates, Multilines, Boolean
return $this->model->getData($attributeCode);
$value = $this->model->getData($attributeCode);
if (!$value) {
$defaultValue = $attribute->getDefaultValue();
if ((string)$defaultValue != '') {
return $defaultValue;
}
}

return $value;
}
}

Expand Down

0 comments on commit 9fccc9d

Please sign in to comment.