Skip to content

Commit de5a5ea

Browse files
authored
fix(target_actor): use 'name' instead of 'completename' for user and supplier actor types (#3619)
1 parent 1db9803 commit de5a5ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

inc/target_actor.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public function export(bool $remove_uuid = false) : array {
294294
break;
295295
case self::ACTOR_TYPE_PERSON:
296296
$user = new User;
297-
$field = $idToRemove == 'uuid' ? 'id' : 'completename';
297+
$field = $idToRemove == 'uuid' ? 'id' : 'name';
298298
if ($user->getFromDB($target_actor['actor_value'])) {
299299
$target_actor['actor_value'] = $user->fields[$field];
300300
}
@@ -308,7 +308,7 @@ public function export(bool $remove_uuid = false) : array {
308308
break;
309309
case self::ACTOR_TYPE_SUPPLIER:
310310
$supplier = new Supplier;
311-
$field = $idToRemove == 'uuid' ? 'id' : 'completename';
311+
$field = $idToRemove == 'uuid' ? 'id' : 'name';
312312
if ($supplier->getFromDB($target_actor['actor_value'])) {
313313
$target_actor['actor_value'] = $supplier->fields[$field];
314314
}

0 commit comments

Comments
 (0)