bug 619100 relation and non-primary keys

This commit is contained in:
Marc Delisle
2002-10-21 16:52:29 +00:00
parent 6b718ebc9f
commit 0496109f93
2 changed files with 3 additions and 2 deletions

View File

@@ -8,8 +8,9 @@ $Source$
2002-10-21 Alexander M. Turek <rabus@users.sourceforge.net>
* lang/german-*.inc.php3: Clarifications.
2002-09-21 Marc Delisle <lem9@users.sourceforge.net>
2002-10-21 Marc Delisle <lem9@users.sourceforge.net>
* lang/spanish: removed control M
* tbl_relation.php3, bug 619100, relation and non-primary key
2002-10-19 Alexander M. Turek <rabus@users.sourceforge.net>
* translators.html, spanish-*.inc.php3: Updates, thanks again to

View File

@@ -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'];