diff --git a/ChangeLog b/ChangeLog index e71a58257..fd1411e0f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ $Source$ * libraries/display_tbl.lib.php3: clicking on a COUNT() column to sort * read_dump.php3: bug 634074: we now use is_writeable() on the tmp subdir, instead of looking for a dot in the open_basedir path + * tbl_relation.php3: show a field in "Links to" if it has been defined + manually in the relationtable, even if it's not a key in the foreign table 2002-11-22 Marc Delisle * libraries/display_tbl.lib.php3: numeric foreign keys used as alias diff --git a/tbl_relation.php3 b/tbl_relation.php3 index 73e895a76..43feb956d 100644 --- a/tbl_relation.php3 +++ b/tbl_relation.php3 @@ -236,22 +236,34 @@ if ($col_rs && mysql_num_rows($col_rs) > 0) { ' . $value . ''. "\n"; } // end while + + // if the link defined in relationtable points to a foreign field + // that is not a key in the foreign table, we show the link + // (will not be shown with an arrow) + if ($foreign_field && !$seen_key) { + echo ' ' + . ''. "\n"; + } ?>