Fix isuniquevalue with pk not internalid
Merge pull request #1121 from Sophist-UK/fix_isuniquevalue_with_pk_not_internalid

Fix isuniquevalue with pk not internalid