From 7c9e44164c9bcf496dca6c5895a739fcd0b9f233 Mon Sep 17 00:00:00 2001 From: iglocska Date: Tue, 23 Jun 2020 00:58:27 +0200 Subject: [PATCH] fix: [UI] reverted ajax index tables not having the title/description - messes with the pagination --- .../genericElements/IndexTable/index_table.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/templates/element/genericElements/IndexTable/index_table.php b/templates/element/genericElements/IndexTable/index_table.php index 25057bc..d9b04ec 100644 --- a/templates/element/genericElements/IndexTable/index_table.php +++ b/templates/element/genericElements/IndexTable/index_table.php @@ -18,10 +18,10 @@ */ $tableRandomValue = Cake\Utility\Security::randomString(8); echo '
'; - if (!$ajax && !empty($data['title'])) { + if (!empty($data['title'])) { echo sprintf('

%s

', h($data['title'])); } - if (!$ajax && !empty($data['description'])) { + if (!empty($data['description'])) { echo sprintf( '
%s
', empty($data['description']) ? '' : h($data['description']) @@ -40,11 +40,9 @@ 'tableRandomValue' => $tableRandomValue ] ); - if (!$ajax) { - echo $this->element( - '/genericElements/IndexTable/pagination_links' - ); - } + echo $this->element( + '/genericElements/IndexTable/pagination_links' + ); } if (!empty($data['top_bar'])) { echo $this->element(