bug #4220 Incorrect key values in foreign key browser

Signed-off-by: Marc Delisle <marc@infomarc.info>