Showing FTU name instead of id in OpenAccessId/Index

This commit is contained in:
Frank Schubert
2023-08-09 10:17:26 +02:00
parent 34ede6ca0e
commit 0058a49ef1
2 changed files with 2 additions and 1 deletions

View File

@@ -154,7 +154,7 @@
<?php if($oaid->exported_to): ?>
[<?=$oaid->exported_to?>]
<?php $ed = $oaid->getExportData($oaid->exported_to); if($ed): ?>
<?=($ed->ftu_id) ? $ed->ftu_id : ""?>
<?=$ed->ftu_name ?? $ed->ftu_id ?? ""?>
<?php endif; ?>
<?php endif; ?>
</td>

View File

@@ -237,6 +237,7 @@ class OpenAccessId extends mfBaseModel {
}
$oaid_export_data->rimo->ftu_id = $unit_extdata->rimo->ftu->id;
$oaid_export_data->rimo->ftu_name = $unit_extdata->rimo->ftu->name;
$oaid_export_data->rimo->ftu_assigned_date = date('U');
$this->export_data = json_encode($oaid_export_data);
$this->save();