Bug #662320
This commit is contained in:
@@ -11,6 +11,8 @@ $Source$
|
||||
* tbl_replace.php3, tbl_replace_fields.php3: Bug #722629 - Use
|
||||
original values of a BLOB field when 'Insert as new row' is
|
||||
chosen on edit.
|
||||
* libraries/display_tbl.lib.php3: Bug #662320 (highlight fields
|
||||
crossing DB borders now allowed)
|
||||
|
||||
2003-04-16 Garvin Hicking <me@supergarv.de>
|
||||
* tbl_query_box.php3: Only hide 'go' SQL button, when in files mode
|
||||
|
@@ -1158,7 +1158,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
|
||||
$title = (!empty($dispval))? ' title="' . htmlspecialchars($dispval) . '"' : '';
|
||||
|
||||
$vertical_display['data'][$row_no][$i] .= '<a href="sql.php3?'
|
||||
. PMA_generate_common_url($db, $map[$meta->name][0])
|
||||
. PMA_generate_common_url($map[$meta->name][3], $map[$meta->name][0])
|
||||
. '&pos=0&session_max_rows=' . $session_max_rows . '&dontlimitchars=' . $dontlimitchars
|
||||
. '&sql_query=' . urlencode('SELECT * FROM ' . PMA_backquote($map[$meta->name][0]) . ' WHERE ' . PMA_backquote($map[$meta->name][1]) . ' = ' . $row[$pointer]) . '"' . $title . '>'
|
||||
. ($transform_function != $default_function ? $transform_function($row[$pointer], $transform_options) : $transform_function($row[$pointer])) . '</a>';
|
||||
@@ -1285,7 +1285,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
|
||||
$title = (!empty($dispval))? ' title="' . htmlspecialchars($dispval) . '"' : '';
|
||||
|
||||
$vertical_display['data'][$row_no][$i] .= '<a href="sql.php3?'
|
||||
. PMA_generate_common_url($db, $map[$meta->name][0])
|
||||
. PMA_generate_common_url($map[$meta->name][3], $map[$meta->name][0])
|
||||
. '&pos=0&session_max_rows=' . $session_max_rows . '&dontlimitchars=' . $dontlimitchars
|
||||
. '&sql_query=' . urlencode('SELECT * FROM ' . PMA_backquote($map[$meta->name][0]) . ' WHERE ' . PMA_backquote($map[$meta->name][1]) . ' = \'' . PMA_sqlAddslashes($relation_id) . '\'') . '"' . $title . '>'
|
||||
. $row[$pointer] . '</a>';
|
||||
@@ -1629,7 +1629,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
|
||||
// check for display field?
|
||||
if ($cfgRelation['displaywork']) {
|
||||
$display_field = PMA_getDisplayField($db, $rel[2]);
|
||||
$map[$rel[0]] = array($rel[2], $rel[3], $display_field);
|
||||
$map[$rel[0]] = array($rel[2], $rel[3], $display_field, $rel[1]);
|
||||
} // end if
|
||||
} // end while
|
||||
} // end if
|
||||
|
Reference in New Issue
Block a user