sort dependent fields.
catch missing ID in fk fields.
fix *attachments -> Attachment relationship to be dependent.
hide 'delete' option in record selector control for empty collections.
set attachment image background to white for print style.