Commit 8335b52d authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

FEAT(export users): add user ID

parent 8d2ee9c1
...@@ -520,6 +520,7 @@ class UsersController extends AppController ...@@ -520,6 +520,7 @@ class UsersController extends AppController
if ($providedForSoftwareNumber === 0) { if ($providedForSoftwareNumber === 0) {
$providedForSoftwareNumber = ''; $providedForSoftwareNumber = '';
} }
$csvData .= ''. $user->id .';';
$csvData .= '"'. $user->user_type->cd .'";'; $csvData .= '"'. $user->user_type->cd .'";';
$csvData .= '"'. $user->username .'";'; $csvData .= '"'. $user->username .'";';
$csvData .= '' . $user->created .';'; $csvData .= '' . $user->created .';';
...@@ -533,6 +534,7 @@ class UsersController extends AppController ...@@ -533,6 +534,7 @@ class UsersController extends AppController
$csvData .= "\n"; $csvData .= "\n";
} }
$csvHead = ''; $csvHead = '';
$csvHead .= "\"id\";";
$csvHead .= "\"type\";"; $csvHead .= "\"type\";";
$csvHead .= "\"name\";"; $csvHead .= "\"name\";";
$csvHead .= "\"created\";"; $csvHead .= "\"created\";";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment