Fix bug in attachment model class introduced in [3965].
Authored by: cmlenz 2006-10-17
Parent: [r3966]
Child: [r3968]