Hi there,
We ran into an issue where a comment submitted as part of an RMA request or change is not available in the email that is sent through the notifications. This applies to both the backend (for example on RMA state change) and frontend (when the user submits a new RMA). Here are the steps that demonstrate the issue:
- In the frontend using the Customer Center, create a new RMA, add a comment and then submit the RMA.
- The email that gets sent (on RMA Creation) contains all the RMA details, but not the user's comment.
- Change the state of the RMA in the backend, enter a comment and save the RMA. The email that that triggers contains the comment from the user of step 1 but not the one from step 2.
- Repeat step 3: change the state of the RMA in the backend again, enter a comment and save the RMA. The email that that triggers contains the comment from the user of step 1 and from step 2 but not the one from step 3.
I think I tracked it down to this code in ReturnMerchandiseAuthorizationEmailRenderer.vb
If template.LoopExists("Ecom:Rma.Comments") Then Dim commentLoop As Template = template.GetLoop("Ecom:Rma.Comments") For Each comment In rma.History
It seems to render the comments from the history, not from the current, active action. I guess the new comment hasn’t been added to the history at this point. Here's a video showing this also: https://www.screencast.com/t/1Q8DQlRj
Can you take a look at this please?
Thanks!
Imar