fixed import

This commit is contained in:
Simon Pocrnjič
2025-12-28 13:55:09 +01:00
parent 84b75143df
commit 36b63a180d
9 changed files with 548 additions and 34 deletions
@@ -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', [