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
333 stars 82 forks source link

Sector Nord AG: Resolved CTRL+left click on ticket error message. #487

Closed ZTrotter closed 8 months ago

ZTrotter commented 10 months ago

Proposed change

When clicking on a ticket in the AgentTicketStatusView with Ctrl pressed, the following error message appears in the browser console:

Core.Agent.Overview.js:283 Uncaught TypeError: Core.UI.Popup.open is not a function
    at HTMLTableRowElement.<anonymous> (Core.Agent.Overview.js:283:35)
    at HTMLTableRowElement.dispatch (jquery.js:2:43064)
    at v.handle (jquery.js:2:41048)

The problem seems to be related to a syntax error in Core.Agent.Overview.js:

 if (Event.target !== $MasterActionLink.get(0)) {
                if (Event.ctrlKey || Event.metaKey) {
                    Core.UI.Popup.open($MasterActionLink.attr('href')); <-- `here is the syntax error`
                }
                else {
                    window.location = $MasterActionLink.attr('href');
                }
                return false;
            }

The syntax error apprears in all three views

Type of change

🐞 bug 🐞

Additional information

Steps to reproduce

Checklist