Fix handling of foreign key fields when determining if it should be in the lookup field list.
Authored by: b_calderwood 2011-10-03
Parent: [r5582]
Child: [r5584]