bug #1521910, with selected ... print view

This commit is contained in:
Marc Delisle
2006-07-27 17:14:30 +00:00
parent a8d75035e8
commit 708c596779
4 changed files with 7 additions and 3 deletions

View File

@@ -9,6 +9,9 @@ $Source$
2006-07-27 Marc Delisle <lem9@users.sourceforge.net> 2006-07-27 Marc Delisle <lem9@users.sourceforge.net>
* pdf_pages.php: automatic layout for InnoDB tables * pdf_pages.php: automatic layout for InnoDB tables
* tbl_properties_operations.php: problem switching from InnoDB to MyISAM * tbl_properties_operations.php: problem switching from InnoDB to MyISAM
* tbl_printview.php, libraries/mult_submits.inc.php,
libraries/db_table_exists.lib.php:
bug #1521910, with selected ... print view
2006-07-26 Marc Delisle <lem9@users.sourceforge.net> 2006-07-26 Marc Delisle <lem9@users.sourceforge.net>
* server_privileges.php: bug #1526557, display error when admin * server_privileges.php: bug #1526557, display error when admin

View File

@@ -28,7 +28,7 @@ if (empty($is_db)) {
} }
} // end if (ensures db exists) } // end if (ensures db exists)
if (empty($is_table)) { if (empty($is_table) && !defined('PMA_SUBMIT_MULT')) {
// Not a valid table name -> back to the db_details.php // Not a valid table name -> back to the db_details.php
if (isset($table) && strlen($table)) { if (isset($table) && strlen($table)) {
$_result = PMA_DBI_try_query( $_result = PMA_DBI_try_query(

View File

@@ -13,7 +13,7 @@ if (!empty($submit_mult)
|| ( isset($selected_fld) && !empty($selected_fld) ) || ( isset($selected_fld) && !empty($selected_fld) )
|| !empty($rows_to_delete) || !empty($rows_to_delete)
)) { )) {
define('PMA_SUBMIT_MULT', 1);
if (isset($selected_db) && !empty($selected_db)) { if (isset($selected_db) && !empty($selected_db)) {
$selected = $selected_db; $selected = $selected_db;
$what = 'drop_db'; $what = 'drop_db';

View File

@@ -45,7 +45,7 @@ PMA_DBI_select_db($db);
/** /**
* Multi-tables printview thanks to Christophe Gesch<EFBFBD> from the "MySQL Form * Multi-tables printview thanks to Christophe Gesche from the "MySQL Form
* Generator for PHPMyAdmin" (http://sourceforge.net/projects/phpmysqlformgen/) * Generator for PHPMyAdmin" (http://sourceforge.net/projects/phpmysqlformgen/)
*/ */
if (isset($selected_tbl) && is_array($selected_tbl)) { if (isset($selected_tbl) && is_array($selected_tbl)) {
@@ -92,6 +92,7 @@ foreach ($the_tables as $key => $table) {
$show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : ''); $show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
PMA_DBI_free_result($result); PMA_DBI_free_result($result);
$tbl_is_view = PMA_Table::isView($db, $table);
// Gets table keys and store them in arrays // Gets table keys and store them in arrays
$indexes = array(); $indexes = array();