diff --git a/code/Model/SalesforceDefaultContactField.php b/code/Model/SalesforceDefaultContactField.php index c070b95..19952de 100644 --- a/code/Model/SalesforceDefaultContactField.php +++ b/code/Model/SalesforceDefaultContactField.php @@ -76,8 +76,7 @@ public function requireDefaultRecords() { foreach ($this->Config()->get('default_records') as $key => $details) { $value = isset($details['Value']) ? $details['Value'] : 'please set'; - $type = isset($details['ValueType']) ? $details['Value'] : 'String'; - $type = $details['ValueType']; + $type = isset($details['ValueType']) ? $details['ValueType'] : 'String'; $filter = [ 'Key' => $key, ];