From 9476c79f7062bf22d32bbf7becfcc50566583f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 5 Aug 2003 11:42:02 +0000 Subject: [PATCH] Use "table (field)" instead of "table -> field" when dumping relations into LaTeX (bug #776957). --- ChangeLog | 2 ++ libraries/export/latex.php3 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c13f18b4e..b148fe6d0 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ $Source$ 2003-08-05 Michal Cihar * sql.php3: Fixed regular expression. + * libraries/export/latex.php3: Use "table (field)" instead of + "table -> field" when dumping relations into LaTeX (bug #776957). 2003-08-05 Marc Delisle * libraries/sqlparser.data.php3: bug 779453, wrong count diff --git a/libraries/export/latex.php3 b/libraries/export/latex.php3 index a74faf8b2..e2c5106fa 100644 --- a/libraries/export/latex.php3 +++ b/libraries/export/latex.php3 @@ -306,7 +306,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals if ($do_relation && $have_rel) { $local_buffer .= "\000"; if (isset($res_rel[$field_name])) { - $local_buffer .= $res_rel[$field_name]['foreign_table'] . ' -> ' . $res_rel[$field_name]['foreign_field']; + $local_buffer .= $res_rel[$field_name]['foreign_table'] . ' (' . $res_rel[$field_name]['foreign_field'] . ')'; } } if ($do_comments && $cfgRelation['commwork']) {