From 42fbffe38db2be5fea0b06612512e6971340af19 Mon Sep 17 00:00:00 2001 From: MyuTsu Date: Thu, 23 Oct 2025 14:11:25 +0200 Subject: [PATCH] fix(target_actor): use 'name' instead of 'completename' for user and supplier actor types --- inc/target_actor.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/target_actor.class.php b/inc/target_actor.class.php index bfe3e7400..b451c293b 100644 --- a/inc/target_actor.class.php +++ b/inc/target_actor.class.php @@ -294,7 +294,7 @@ public function export(bool $remove_uuid = false) : array { break; case self::ACTOR_TYPE_PERSON: $user = new User; - $field = $idToRemove == 'uuid' ? 'id' : 'completename'; + $field = $idToRemove == 'uuid' ? 'id' : 'name'; if ($user->getFromDB($target_actor['actor_value'])) { $target_actor['actor_value'] = $user->fields[$field]; } @@ -308,7 +308,7 @@ public function export(bool $remove_uuid = false) : array { break; case self::ACTOR_TYPE_SUPPLIER: $supplier = new Supplier; - $field = $idToRemove == 'uuid' ? 'id' : 'completename'; + $field = $idToRemove == 'uuid' ? 'id' : 'name'; if ($supplier->getFromDB($target_actor['actor_value'])) { $target_actor['actor_value'] = $supplier->fields[$field]; }