diff --git a/themes/fid/languages/fid/de.ini b/themes/fid/languages/fid/de.ini index d0ffa82fed491360dbfcdf8394db75ace61cf524..2459aaded65f50cd1745fc33023f01d53b6aff3c 100644 --- a/themes/fid/languages/fid/de.ini +++ b/themes/fid/languages/fid/de.ini @@ -121,6 +121,7 @@ read_order_list_not_allowed = "Sie haben keine Berechtigung die Bestellliste ein user_edit_form_title = "Nutzerdaten ändern für <em>%%username%%</em> (ID %%userid%%)" user_edit = "Nutzer %%userid%% bearbeiten" +user_deleted = "Gelöschter Nutzer" permission_read_user_list = "Liste aller Nutzer einsehen" permission_edit_user = "Daten anderer Nutzer bearbeiten" diff --git a/themes/fid/languages/fid/en.ini b/themes/fid/languages/fid/en.ini index c511b01b33af51c737bcfff70447676216f3e15b..d8af96da20a412c9e1fe22827a542002c40f240a 100644 --- a/themes/fid/languages/fid/en.ini +++ b/themes/fid/languages/fid/en.ini @@ -119,6 +119,7 @@ read_order_list_not_allowed = "You are not entitled to read the order list" user_edit_form_title = "Edit user data of <em>%%username%%</em> (ID %%userid%%)" user_edit = "Edit user %%userid%%" +user_deleted = "Deleted user" permission_read_user_list = "Read list of all users" permission_edit_user = "Edit other user's data" diff --git a/themes/fid/templates/fid/user/admin-orders.phtml b/themes/fid/templates/fid/user/admin-orders.phtml index c4042701c89bdc77c6e574438a46f69de58c9580..3caca066e03db0a678264b53d1d15f7cab8c689b 100644 --- a/themes/fid/templates/fid/user/admin-orders.phtml +++ b/themes/fid/templates/fid/user/admin-orders.phtml @@ -25,8 +25,11 @@ <td> <?php /** @var \fid\Service\DataTransferObject\User $user */ - $user = $order->getUser(); ?> - <?= $user->getFirstname() ?> <?= $user->getLastname() ?> + if ($user = $order->getUser()) : ?> + <?= $user->getFirstname() ?> <?= $user->getLastname() ?> + <?php else: ?> + <?= $this->translate('fid::user_deleted') ?> + <?php endif; ?> </td> <!-- fid: fid - admin - order-list - data - END -->