From 5642843d07aca6f19f7ce1549ceece3c48ce20cf Mon Sep 17 00:00:00 2001 From: dk Date: Tue, 4 May 2021 15:20:47 +0200 Subject: [PATCH] #2 CustomerTicketProcess.pm is adjusted for issue#843 in otobo repository. --- Kernel/Modules/CustomerTicketProcess.pm | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/Kernel/Modules/CustomerTicketProcess.pm b/Kernel/Modules/CustomerTicketProcess.pm index 17b296d..5fe6b7c 100644 --- a/Kernel/Modules/CustomerTicketProcess.pm +++ b/Kernel/Modules/CustomerTicketProcess.pm @@ -1800,6 +1800,13 @@ sub _OutputActivityDialog { if ( $Self->{IsAjaxRequest} ) { + # Initialize input fields like checkbox correctly + $LayoutObject->AddJSOnDocumentComplete( + Code => ' + $("label").removeAttr("for"); + Core.UI.InputFields.Init(); + ' + ); # Due to the initial loading of # the first ActivityDialog after Process selection # we have to bind the AjaxUpdate Function on @@ -2023,7 +2030,7 @@ sub _RenderDynamicField { return { Success => 1, - HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/DynamicField' ), + HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/CustomerDynamicField' ), }; } @@ -2103,7 +2110,7 @@ sub _RenderTitle { return { Success => 1, - HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/Title' ), + HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/CustomerTitle' ), }; } @@ -2259,7 +2266,7 @@ sub _RenderArticle { return { Success => 1, - HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/Article' ), + HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/CustomerArticle' ), }; } @@ -2527,7 +2534,7 @@ sub _RenderSLA { return { Success => 1, - HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/SLA' ), + HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/CustomerSLA' ), }; } @@ -2685,7 +2692,7 @@ sub _RenderService { return { Success => 1, - HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/Service' ), + HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/CustomerService' ), }; } @@ -2822,7 +2829,7 @@ sub _RenderPriority { return { Success => 1, - HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/Priority' ), + HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/CustomerPriority' ), }; } @@ -2967,7 +2974,7 @@ sub _RenderQueue { return { Success => 1, - HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/Queue' ), + HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/CustomerQueue' ), }; } @@ -3098,7 +3105,7 @@ sub _RenderState { return { Success => 1, - HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/State' ), + HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/CustomerState' ), }; } @@ -3249,7 +3256,7 @@ sub _RenderType { return { Success => 1, - HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/Type' ), + HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/CustomerType' ), }; }