diff --git a/ChangeLog b/ChangeLog index e0c017d90e..7ae9a64ecc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -57,6 +57,7 @@ phpMyAdmin - ChangeLog - issue #12945 Fixed hint rendering on adding new user - issue #12941 Fixed sorting of tables in relation view - issue #12936 Fixed tables pagination in navigation panel +- issue #12904 Do not collapse add form for central columns if there are none 4.6.6 (2017-01-23) - issue #12759 Fix Notice regarding 'Undefined index: old_usergroup' diff --git a/db_central_columns.php b/db_central_columns.php index c14d094c26..321b4e9b82 100644 --- a/db_central_columns.php +++ b/db_central_columns.php @@ -100,7 +100,7 @@ if (PMA_isValid($_REQUEST['pos'], 'integer')) { } else { $pos = 0; } -$addNewColumn = PMA_getHTMLforAddNewColumn($db); +$addNewColumn = PMA_getHTMLforAddNewColumn($db, $total_rows); $response->addHTML($addNewColumn); if ($total_rows <= 0) { $response->addHTML( diff --git a/libraries/central_columns.lib.php b/libraries/central_columns.lib.php index 19b3d049f6..a4b84cffc0 100644 --- a/libraries/central_columns.lib.php +++ b/libraries/central_columns.lib.php @@ -1252,16 +1252,18 @@ function PMA_handleColumnExtra(&$columns_list) /** * build html for adding a new user defined column to central list * - * @param string $db current database + * @param string $db current database + * @param integer $total_rows number of rows in central columns * * @return string html of the form to let user add a new user defined column to the * list */ -function PMA_getHTMLforAddNewColumn($db) +function PMA_getHTMLforAddNewColumn($db, $total_rows) { $addNewColumn = '
' . '+ ' . __('Add new column') . '' - . '