znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
383 stars 89 forks source link

Bug - Dashboard-TicketQueueOverview refresh #156

Closed tune6688 closed 2 years ago

tune6688 commented 3 years ago

Dear all I found a new problem, Dashboard-TicketQueueOverview refresh often fails to refresh automatically(Sometimes it works and sometimes it doesn't). Please check it!

Thank you for your attention and support!

hanneshal commented 3 years ago

I'm sorry but without a more detailed description we cant do a thing here. There is a reason why we have this bug template. :shipit: :crystal_ball:

We need at least, browser+version and the OS.

Additional questions: Is the refresh working again after you manually refresh the window? Is there an error in the browser console shown when the refresh stops? Is there an error in the Znuny Log and / or in the webserver log?

Greetings

tune6688 commented 3 years ago

Thank for all help ! Sorry for my late response. Chrome: 94.0.4606.81 OS:Windows10 Zunny:6.12

On the dashboard page, I select the ticket queue overview and some other widgets, and then refresh the page. Sometimes this widget can be triggered to refresh automatically, sometimes not, other widgets are running normally, such as my ticket, and the processed tickets are running normally . The problem that has been found is that the TargetNS.Get function in the Core.Config.js file has added an output debugging statement, as shown in the figure 1.jgp below. 3.jpg

And then we check the results in the browser Cansole, and find that when the variable ConfigLevel is wrong, the control information of QueueOverview cannot be obtained correctly, and when it is correct, it is as that shown in Figure 2.jpg. 2.jpg

When it is wrong, it is as that in Figure 3.jgp 1.jpg Please help to comment what we should do next to solve the problem? 3 2 1

tune6688 commented 3 years ago

To solve this problem, I added the following debugging code: "if (Keys=='QueueOverview') {console.log(ConfigLevel);alert(ConfigLevel[ConfigPrefix + Keys[KeyToken]])},". Through the chrome console output, I found that the QueueOverView object cannot be obtained correctly every time.

tune6688 commented 2 years ago

Thanks for your help!