Hello
We have this problem in RT where we upload attachments in create.html and in the ui it shows perfectly fine that it was uploaded but when i navigate back to display.html i see no attachment(mostly image) but when the attachment is added via ModifyAll.html i can see the attachment in Display.html. In Create.html I have processAttachments with argsref as params but I don’t get it why it’s not showing in Display.html.
Any help is appreciated.
Do you have any local modifications that might affect it? And is there anything showing up in the logs?
In the logs I don’t see any warnings or errors. But I have some local modifications in my Create.html file and mainly I think I removed some params here when we did not need attachments:
my ($ticket_id, $msg) = $ticket->Create(
Queue => $QueueObj->Id,
Subject => $ARGS{Subject} || 'No Subject',
InitialPriority => $ARGS{InitialPriority},
FinalPriority => $ARGS{FinalPriority},
Status => $ARGS{Status} || 'close',
);
Have you tried moving your local version to one side (rename the file), clear the Mason cache and then see if the behaviour is the same?
Yes Jim I have done that. Maybe I’m not placing ProcessAttachments() correctly I think. I placed it before ticket creation and also after ticket creation still no luck.
Also Jim Do I need to pass TicketObj => $TicketObj in AddAttachments besides ARGS on ticket creation
I’m a little unclear from your replies: did removing your local modifications mean that the attachments were then displayed OK? If so, and as you “removed some params here when we did not need attachments” and now do seem to use attachments, maybe just use the stock version of the code now?
Thanks for your reply jim. No the stock is not working. Adding those params did not work . Adding the processAttachments() before and after ticket creation did not work. Using different parameters for ProcessAttachments did not work as well. I don’t know what might be the issue.
If the stock version doesn’t work for you then I’m afraid I don’t know what to suggest, as it attachments work here (on both 5.0.8 and our test 6.0.0).