Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added a null coalescing to handle cases where the username is null
  • Loading branch information
eiresendez committed Mar 26, 2024
commit 306814d021f1780a4e9cc7f3250fc36e21970761
3 changes: 1 addition & 2 deletions ProcessMaker/ImportExport/Exporters/UserExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Illuminate\Support\Arr;
use ProcessMaker\ImportExport\DependentType;
use ProcessMaker\Models\Permission;
use ProcessMaker\Models\User;

class UserExporter extends ExporterBase
{
Expand Down Expand Up @@ -51,6 +50,6 @@ public static function doNotImport($uuid, $assetInfo)

public function getName($model) : string
{
return $model->username;
return $model->username ?? '';
}
}