diff --git a/src/Controller/AppController.php b/src/Controller/AppController.php index b52faad32..ed1e0c108 100644 --- a/src/Controller/AppController.php +++ b/src/Controller/AppController.php @@ -274,6 +274,8 @@ class AppController extends Controller } if(isset($returnTable['details'])) { $adminErrorEntity->details = $returnTable['details']; + } else { + $adminErrorEntity->details = __('(Leere Details)'); } if(!$adminErrorTable->save($adminErrorEntity)) { $this->Flash->error(__('Serious error, couldn\'t save to db, please write the admin: ' . $this->getAdminEmailLink())); diff --git a/src/Template/AddressTypes/index.ctp b/src/Template/AddressTypes/index.ctp index 978751be0..8460e08a7 100644 --- a/src/Template/AddressTypes/index.ctp +++ b/src/Template/AddressTypes/index.ctp @@ -40,8 +40,8 @@ -
| = $this->Paginator->sort('id') ?> | -= $this->Paginator->sort('state_user_id') ?> | -= $this->Paginator->sort('controller') ?> | -= $this->Paginator->sort('action') ?> | -= $this->Paginator->sort('state') ?> | -= $this->Paginator->sort('msg') ?> | -= $this->Paginator->sort('details') ?> | -= $this->Paginator->sort('created') ?> | -= __('Actions') ?> | -
|---|---|---|---|---|---|---|---|---|
| = $this->Number->format($adminError->id) ?> | -= $adminError->has('state_user') ? $this->Html->link($adminError->state_user->id, ['controller' => 'StateUsers', 'action' => 'view', $adminError->state_user->id]) : '' ?> | -= h($adminError->controller) ?> | -= h($adminError->action) ?> | -= h($adminError->state) ?> | -= h($adminError->msg) ?> | -= h($adminError->details) ?> | -= h($adminError->created) ?> | -- = $this->Html->link(__('View'), ['action' => 'view', $adminError->id]) ?> - = $this->Html->link(__('Edit'), ['action' => 'edit', $adminError->id]) ?> - = $this->Form->postLink(__('Delete'), ['action' => 'delete', $adminError->id], ['confirm' => __('Are you sure you want to delete # {0}?', $adminError->id)]) ?> - | -