Merge branch 'QA_4_3'

This commit is contained in:
Marc Delisle 2014-12-24 13:46:18 -05:00
commit 668bf046d0
2 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,7 @@ phpMyAdmin - ChangeLog
- bug #4642 phpmyadmin often fails to load due to specific load order
- bug #4671 Unable to move all columns
- bug #4645 Import of export created with mysqldump
- bug #4672 "Distinct values" does not page
4.3.3.0 (2014-12-21)
- bug The "Recently used tables" setting should be with Nav panel

View File

@ -377,6 +377,7 @@ class PMA_DisplayResults
$db = $this->__get('db');
$table = $this->__get('table');
$unlim_num_rows = $this->__get('unlim_num_rows');
$num_rows = $this->__get('num_rows');
$fields_meta = $this->__get('fields_meta');
$printview = $this->__get('printview');
@ -518,6 +519,11 @@ class PMA_DisplayResults
$the_total = PMA_Table::countRecords($db, $table);
}
// if for COUNT query, number of rows returned more than 1 (may be being used GROUP BY)
if ($this->__get('is_count') && isset($num_rows) && $num_rows > 1) {
$do_display['nav_bar'] = (string) '1';
$do_display['sort_lnk'] = (string) '1';
}
// 4. If navigation bar or sorting fields names URLs should be
// displayed but there is only one row, change these settings to
// false