Skip to content

Commit a7b7c65

Browse files
committed
Guard if nested name is not available.
1 parent f5d9235 commit a7b7c65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AddressFinderField.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ public function setValue($value, $record = null)
312312
foreach ($this->getManualFields() as $field) {
313313
$name = $this->getNestedFieldName($field);
314314

315-
$field->setValue($record->{$name});
315+
if ($name) {
316+
$field->setValue($record->{$name});
317+
}
316318
}
317319
} elseif (is_array($value)) {
318320
if (isset($value['Address'])) {

0 commit comments

Comments
 (0)