Skip to content

Commit

Permalink
mysql version backward compatibility and added fieldset menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Blanquera committed Dec 20, 2018
1 parent ea906ce commit 0803fd8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package/schema/role.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@
'path' => '/admin/system/schema/search',
'label' => 'Schemas'
],
[
'icon' => 'fas fa-sliders-h',
'path' => '/admin/system/fieldset/search',
'label' => 'Fieldsets'
],
[
'icon' => 'fas fa-cogs',
'path' => '/admin/configuration',
Expand Down
10 changes: 10 additions & 0 deletions src/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@

// iterate on each record count
foreach ($records as $count) {
//backwards compatibility
if (isset($count['table_name'])) {
$count['TABLE_NAME'] = $count['table_name'];
}

//backwards compatibility
if (isset($count['table_rows'])) {
$count['TABLE_ROWS'] = $count['table_rows'];
}

// build out the criteria
$criteria = sprintf('/%s/search', $count['TABLE_NAME']);

Expand Down

0 comments on commit 0803fd8

Please sign in to comment.