fixed import
This commit is contained in:
@@ -128,7 +128,20 @@ public function process(Import $import, array $mapped, array $raw, array $contex
|
||||
$payload['type_id'] = $this->getDefaultPersonTypeId();
|
||||
}
|
||||
|
||||
Log::debug('PersonHandler: Payload before fill', [
|
||||
'payload' => $payload,
|
||||
'has_group_id' => isset($payload['group_id']),
|
||||
'group_id_value' => $payload['group_id'] ?? null,
|
||||
]);
|
||||
|
||||
$person->fill($payload);
|
||||
|
||||
Log::debug('PersonHandler: Person attributes after fill', [
|
||||
'attributes' => $person->getAttributes(),
|
||||
'has_group_id' => isset($person->group_id),
|
||||
'group_id_value' => $person->group_id ?? null,
|
||||
]);
|
||||
|
||||
$person->save();
|
||||
|
||||
Log::info('PersonHandler: Created new Person', [
|
||||
|
||||
Reference in New Issue
Block a user