[KRACOEUS-8530] Override and fixes for add line dialog fixes, also rever...

...sion of attachment fix to be in line with the fix in rice
not using: attachment.getType()?  What is stored in type?