Prefilled content with custom MenuModule not working anymore since OTRS 4

Hello everyone, I used to add custom menu buttons in Frontend::Agent::Ticket::MenuModule to prefill AgentTicketNote since OTRS 3.0 until 3.3 with URL encoded HTML content, the method is explained here: http://blog.otrs.org/2010/11/02/otrs-3-0-ticket-templates/ Now after upgrading to OTRS 4 and finally 5.0.9 on a test system I replaced TicketID=$QData{"TicketID"} with TicketID=[% Data.TicketID | html %] and now the encoded html part gets encoded but does not get interpreted, it stays an html text, here is my config (URL shortened). <ConfigItem Name="Ticket::Frontend::MenuModule###421-Support-Escalation" Required="0" Valid="1"> <Description Translatable="1">Test Menu</Description> <Group>Ticket</Group> <SubGroup>Frontend::Agent::Ticket::MenuModule</SubGroup> <Setting> <Hash> <Item Key="Module">Kernel::Output::HTML::TicketMenu::Generic</Item> <Item Key="Name">Support Escalation</Item> <Item Key="Description" Translatable="1">Escalate Isssue to HQ</Item> <Item Key="Action">AgentTicketNote</Item> <Item Key="Group">rw:support.all;rw:support.us;rw:support.apac</Item> <Item Key="Link">Action=AgentTicketNote;TicketID=[% Data.TicketID | html %];DynamicField_TicketFreeText3=Yes;Subject=Test+Menu;Body=%3Cspan+style%3D%22font-size%3A18px%3B%22%3ETest+Module</Item> <Item Key="PopupType">TicketAction</Item> </Hash> </Setting> </ConfigItem> I thought this would be a good opportunity to use the Note-Template feature, so I altered the Link by using "StandardTemplateID" like this: <Item Key="Link">Action=AgentTicketNote;TicketID=[% Data.TicketID | html %];DynamicField_TicketFreeText3=Yes;Subject=Test+Menu;StandardTemplateID=56 Now the correct template is selected but the body is not filled with text. ? Please if someone could help me achieving the same as I had until OTRS 3.3 it would enable us to upgrade to the new OTRS version. Thanks in advance! Regards, Rick

Hi, 22.04.2016 11:30 - Rick Heisterhagen schrieb:
I used to add custom menu buttons in Frontend::Agent::Ticket::MenuModule to prefill AgentTicketNote since OTRS 3.0 until 3.3 with URL encoded HTML content, the method is explained here: [1]http://blog.otrs.org/2010/11/02/otrs-3-0-ticket-templates/
I use this for new tickets only. For the note I use the OTRS5 integraded feature Template for notes. You create a template - type note and voila. You can use more than one :) best regards -- Florian [1] http://blog.otrs.org/2010/11/02/otrs-3-0-ticket-templates/

Hi Florian, Thanks for your reply. I am aware of that feature but I would like to have a specific template preset when I create a new note. Any idea? Regards, Rick From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Florian Edlhuber Sent: Dienstag, 26. April 2016 03:58 To: otrs@otrs.org Subject: Re: [otrs] Prefilled content with custom MenuModule not working anymore since OTRS 4 Hi, 22.04.2016 11:30 - Rick Heisterhagen schrieb:
I used to add custom menu buttons in
Frontend::Agent::Ticket::MenuModule to prefill AgentTicketNote since
OTRS 3.0 until 3.3 with URL encoded HTML content, the method is explained
here: http://blog.otrs.org/2010/11/02/otrs-3-0-ticket-templates/
I use this for new tickets only. For the note I use the OTRS5 integraded feature Template for notes. You create a template - type note and voila. You can use more than one :) best regards -- Florian
participants (2)
-
Florian Edlhuber
-
Rick Heisterhagen