xtree: tables & views can't expand the browse item
authornirgal <nirgal@users.noreply.github.com>
Tue, 8 Oct 2019 15:42:12 +0000 (15:42 +0000)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2019 15:42:12 +0000 (15:42 +0000)
In the left tree, in tables and views, when one click on the + of browse, a message like "Erreur lors du chargement display.php?action=tree&return=schema&subject=view&view=test+vue&server=localhost%3A5432%3Aallow&database=bug422&schema=public (200: OK)" is displayed.

These items don't support tree actions, and the tree expansion should be be offered in the first place.

classes/Misc.php

index 281ba38b99ff60eeb9e71332c99b5a1c50a936e9..87a5eb6f6dee573a28e3714f5988c74a01119cd8 100644 (file)
                                                        'url'   => 'display.php',
                                                        'urlvars' => array ('subject' => 'table','table' => field('table')),
                                                        'return' => 'table',
-                                                       'branch'=> true,
                                                ),
                                                'select' => array(
                                                        'title' => $lang['strselect'],
                                                                        'subject' => 'view',
                                                                        'view' => field('view')
                                                        ),
-                                                       'branch'=> true,
                                                ),
                                                'select' => array(
                                                        'title' => $lang['strselect'],