From 03a831b53bbaa1c6452c5231600b3e4af17b5bc7 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Wed, 15 Sep 2021 08:08:27 +0100 Subject: [PATCH] Maintenance: Improve core workflow working only on last request to reduce form blocking and more checks on websocket connection. --- .../controllers/ticket_zoom/form_handler_core_workflow.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/form_handler_core_workflow.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/form_handler_core_workflow.coffee index 699740da8..115a8fd01 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/form_handler_core_workflow.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/form_handler_core_workflow.coffee @@ -76,6 +76,7 @@ class App.FormHandlerCoreWorkflow # checks if the ajax or websocket endpoint should be used @useWebSockets: -> + return if !App.WebSocket.channel() return !App.Config.get('core_workflow_ajax_mode') # restricts the dropdown and tree select values of a form @@ -274,6 +275,7 @@ class App.FormHandlerCoreWorkflow # this will use the form handler information to send the data to the backend via ajax/websockets @request: (classname, form, ui, attributes, params) -> requestID = "CoreWorkflow-#{Math.floor( Math.random() * 999999 ).toString()}" + coreWorkflowRequests = {} coreWorkflowRequests[requestID] = { classname: classname, form: form, ui: ui, attributes: attributes, params: params } requestData = {