Fix class with ']'
Fix getting registrations error if no project id
Project attachment: clears new attachment edit box after create (#569)