From 76a4b66417b77b9dd8edc7ecd408d1a9a5be4530 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 15 Feb 2019 16:45:48 +0100 Subject: [PATCH] Fixes issue #2478 - Unable to update ticket with IE11. --- app/assets/javascripts/app/controllers/ticket_zoom.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.coffee index 73fc47fc1..6df84a8b0 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.coffee @@ -808,7 +808,8 @@ class App.TicketZoom extends App.Controller @autosaveStop() # validate ticket form using HTML5 validity check - if !@$('.edit').parent().get(0).reportValidity() + element = @$('.edit').parent().get(0) + if element && element.reportValidity && !element.reportValidity() @submitEnable(e) @autosaveStart() return