From ab7844ae99c4d772dc221d112312312063eb2ee2 Mon Sep 17 00:00:00 2001
From: JediKev <kevin@enhancesoft.com>
Date: Tue, 24 Jul 2018 10:18:20 -0500
Subject: [PATCH] issue: IE White Screen Of Death

This addresses an issue on the forums where clicking to view the ticket as
an Agent in IE 11 throws a white screen of death. This is due to the
shorthand javascript arrow functions in `include/staff/ticket-view.inc.php`.
---
 include/staff/ticket-view.inc.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php
index 173bcbcb2..c1747a63f 100644
--- a/include/staff/ticket-view.inc.php
+++ b/include/staff/ticket-view.inc.php
@@ -1286,12 +1286,12 @@ $(function() {
   $('#collabselection').select2({
     width: '350px',
     allowClear: true,
-    sorter: (data) => {
+    sorter: function(data) {
         return data.filter(function (item) {
                 return !item.selected;
                 });
     },
-    templateResult: (e) => {
+    templateResult: function(e) {
         var $e = $(
         '<span><i class="icon-user"></i> ' + e.text + '</span>'
         );
-- 
GitLab