On error show edit link with table context if possible.
This commit is contained in:
@@ -32,6 +32,8 @@ $Source$
|
||||
* tbl_change.php: Fix wrong path to image.
|
||||
* tbl_properties_operations.php: Define sort order for sorting tables
|
||||
(RFE #971314).
|
||||
* libraries/common.lib.php: On error show edit link with table context if
|
||||
possible.
|
||||
|
||||
2004-06-15 Alexander M. Turek <me@derrabus.de>
|
||||
* libraries/config_import.lib.php: The default settings should be merged.
|
||||
|
@@ -615,7 +615,11 @@ if ($is_minimum_common == FALSE) {
|
||||
echo PMA_showMySQLDocu('Reference', 'SELECT');
|
||||
}
|
||||
if ($is_modify_link && isset($db)) {
|
||||
$doedit_goto = '<a href="db_details.php?' . PMA_generate_common_url($GLOBALS['db']) . '&sql_query=' . urlencode($the_query) . '&show_query=1">';
|
||||
if (isset($table)) {
|
||||
$doedit_goto = '<a href="tbl_properties.php?' . PMA_generate_common_url($db, $table) . '&sql_query=' . urlencode($the_query) . '&show_query=1">';
|
||||
} else {
|
||||
$doedit_goto = '<a href="db_details.php?' . PMA_generate_common_url($db) . '&sql_query=' . urlencode($the_query) . '&show_query=1">';
|
||||
}
|
||||
if ($GLOBALS['cfg']['PropertiesIconic']) {
|
||||
echo $doedit_goto
|
||||
. '<img src=" '. $GLOBALS['pmaThemeImage'] . 'b_edit.png" width="16" height="16" border="0" hspace="2" align="absmiddle" alt="' . $GLOBALS['strEdit'] .'" />'
|
||||
|
Reference in New Issue
Block a user