VT740 & Customer Portal - Possible timing bug in client Javascript code?
I have witnessed a strange issue with the portal recently that appears to be due to a timing issue.
See screenshot below from the Javascript console of the portal web browser. We are viewing a ticket in the web browser. When the GET request highlighted below is quite slow to respond (as it was in this example), the subsequent GET request calls to retrieve related data, (Comments, History and Documents) do not get triggered at all, and so the related tabs on to the Ticket screen are empty of data.
For this we created had a test Ticket that had three documents and a comment associated with it. When the initial call is slow to respond we do not see the comment or the documents, but when it replies faster the other GET requests are made and the comment and documents are shown in the tabs of the ticket Detail view as they should be.
When the highlighted request above happens reasonably quickly then the other GET request calls to retrieve related data work as they should.
The problem seems to be something to do with this part of the code but unfortunately I am not familiar with angular at all: