for the new ForeignKeyDropdownOrder, id and content were reversed (id-content showed content then id)

This commit is contained in:
Marc Delisle
2005-07-22 18:01:37 +00:00
parent 72502eca64
commit 8f9b686e20
2 changed files with 4 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ $Source$
information_schema
* browse_foreigners.php: bug #1242805, Show All does not work while
browsing foreign values
* libraries/relation.lib.php: for the new ForeignKeyDropdownOrder, id and
content were reversed (id-content showed content then id)
2005-07-21 Marc Delisle <lem9@users.sourceforge.net>
* libraries/auth/cookie.auth.lib.php: bug #1240880, XSS on the

View File

@@ -825,8 +825,8 @@ function PMA_foreignDropdown($disp, $foreign_field, $foreign_display, $data, $ma
$reloption .= ' selected="selected"';
} // end if
$reloptions['id-content'][] = $reloption . '>' . $value . '&nbsp;-&nbsp;' . htmlspecialchars($key) . '</option>' . "\n";
$reloptions['content-id'][] = $reloption . '>' . htmlspecialchars($key) . '&nbsp;-&nbsp;' . $value . '</option>' . "\n";
$reloptions['content-id'][] = $reloption . '>' . $value . '&nbsp;-&nbsp;' . htmlspecialchars($key) . '</option>' . "\n";
$reloptions['id-content'][] = $reloption . '>' . htmlspecialchars($key) . '&nbsp;-&nbsp;' . $value . '</option>' . "\n";
} // end while
// the list of keys looks better if not sorted by description