rfe #3141330 [relation] When displaying results, show a link to the foreign table even when phpMyAdmin configuration storage is not active
This commit is contained in:
@@ -125,6 +125,8 @@
|
|||||||
thanks to garas - garas
|
thanks to garas - garas
|
||||||
- bug #3123433 [interface] Avoid double escaping of MySQL errors.
|
- bug #3123433 [interface] Avoid double escaping of MySQL errors.
|
||||||
- [interface] Use less noisy message and remove disable link on server charts and database statistics.
|
- [interface] Use less noisy message and remove disable link on server charts and database statistics.
|
||||||
|
+ rfe #3141330 [relation] When displaying results, show a link to the foreign
|
||||||
|
table even when phpMyAdmin configuration storage is not active
|
||||||
|
|
||||||
3.3.10.0 (not yet released)
|
3.3.10.0 (not yet released)
|
||||||
|
|
||||||
|
@@ -2014,10 +2014,15 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql)
|
|||||||
}
|
}
|
||||||
$tabs = '(\'' . join('\',\'', $target) . '\')';
|
$tabs = '(\'' . join('\',\'', $target) . '\')';
|
||||||
|
|
||||||
if ($cfgRelation['displaywork']) {
|
|
||||||
if (! strlen($table)) {
|
if (! strlen($table)) {
|
||||||
$exist_rel = false;
|
$exist_rel = false;
|
||||||
} else {
|
} else {
|
||||||
|
// To be able to later display a link to the related table,
|
||||||
|
// we verify both types of relations: either those that are
|
||||||
|
// native foreign keys or those defined in the phpMyAdmin
|
||||||
|
// configuration storage. If no PMA storage, we won't be able
|
||||||
|
// to use the "column to display" notion (for example show
|
||||||
|
// the name related to a numeric id).
|
||||||
$exist_rel = PMA_getForeigners($db, $table, '', 'both');
|
$exist_rel = PMA_getForeigners($db, $table, '', 'both');
|
||||||
if ($exist_rel) {
|
if ($exist_rel) {
|
||||||
foreach ($exist_rel AS $master_field => $rel) {
|
foreach ($exist_rel AS $master_field => $rel) {
|
||||||
@@ -2029,7 +2034,6 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql)
|
|||||||
} // end while
|
} // end while
|
||||||
} // end if
|
} // end if
|
||||||
} // end if
|
} // end if
|
||||||
} // end if
|
|
||||||
// end 2b
|
// end 2b
|
||||||
|
|
||||||
// 3. ----- Displays the results table -----
|
// 3. ----- Displays the results table -----
|
||||||
|
Reference in New Issue
Block a user