Fixed bug# 10767 - View AgentITSMWorkOrderReport: Deleting of the attachment is not possible.
Code cleanup.