From 86eb4c456855bb1663af60418d09f3e348b705d2 Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Wed, 21 Jan 2015 23:39:32 +0530 Subject: [PATCH] Fix bug#4710 Nav tree error after filtering the tables Signed-off-by: Atul Pratap Singh --- ChangeLog | 1 + js/navigation.js | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b2fedcc5cc..c01810b9e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ phpMyAdmin - ChangeLog - bug #4719 'only_db' not working - bug #4700 Error text: Internal Server Error - bug #4722 Incorrect width table summary when favorite tables is disabled +- bug #4710 Nav tree error after filtering the tables 4.3.7.0 (2015-01-15) - bug #4694 js error on marking table as favorite in Safari (in private mode) diff --git a/js/navigation.js b/js/navigation.js index 0e319bc315..80fcb88400 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -522,10 +522,15 @@ function loadChildNodes($expandElem, callback) { pos: $expandElem.find('span.pos').text(), pos2_name: $expandElem.find('span.pos2_name').text(), pos2_value: $expandElem.find('span.pos2_value').text(), - searchClause: searchClause, - searchClause2: searchClause2 + searchClause: '', + searchClause2: '' }; + if ($('#pma_navigation_tree').children().first().is('ul')) { + params.searchClause = searchClause; + params.searchClause2 = searchClause2; + } + var url = $('#pma_navigation').find('a.navigation_url').attr('href'); $.get(url, params, function (data) { if (typeof data !== 'undefined' && data.success === true) {