From 0496109f930a19c10b431a85d767ddab49958a45 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 21 Oct 2002 16:52:29 +0000 Subject: [PATCH] bug 619100 relation and non-primary keys --- ChangeLog | 3 ++- tbl_relation.php3 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 65544b52e6..537d21e152 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,8 +8,9 @@ $Source$ 2002-10-21 Alexander M. Turek * lang/german-*.inc.php3: Clarifications. -2002-09-21 Marc Delisle +2002-10-21 Marc Delisle * lang/spanish: removed control M + * tbl_relation.php3, bug 619100, relation and non-primary key 2002-10-19 Alexander M. Turek * translators.html, spanish-*.inc.php3: Updates, thanks again to diff --git a/tbl_relation.php3 b/tbl_relation.php3 index f8dec0fca1..315f5a5e51 100644 --- a/tbl_relation.php3 +++ b/tbl_relation.php3 @@ -173,7 +173,7 @@ if ($cfgRelation['relwork']) { $field_full = $db . '.' .$curr_field['Table'] . '.' . $curr_field['Column_name']; $field_v = $curr_field['Table'] . '->' . $curr_field['Column_name']; break; - } else if (isset($curr_field['non_unique']) && $curr_field['non_unique'] == 0) { + } else if (isset($curr_field['Non_unique']) && $curr_field['Non_unique'] == 0) { // if we can't find a primary key we take any unique one $field_full = $db . '.' . $curr_field['Table'] . '.' . $curr_field['Column_name']; $field_v = $curr_field['Table'] . '->' . $curr_field['Column_name']; -- 2.11.4.GIT