1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00

PostgreSQL: Hide only partitions, not all inherited tables from menu

This commit is contained in:
Jakub Vrana
2025-06-03 15:05:12 +02:00
parent 57b6afc8cb
commit 4698686232
5 changed files with 6 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ class AdminerMenuLinks extends Adminer\Plugin {
foreach ($tables as $table => $status) {
$table = "$table"; // do not highlight "0" as active everywhere
$name = Adminer\adminer()->tableName($status);
if ($name != "" && !$status["inherited"]) {
if ($name != "" && !$status["partition"]) {
echo '<li>';
if (!$menu) {
echo '<a href="' . Adminer\h(Adminer\ME) . 'select=' . urlencode($table) . '"'