Re: [dev] New Module doesn't work
Did you check if there is a JavaScript error? Was the form submitted? Kind regards, Renée -- Perl / OTRS development: http://perl-services.de OTRS AddOn repository: http://opar.perl-services.de ___ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
[dev] New Module doesn't work
Hi Developer Community, I'm testing OTRS 4.0.10. I tried to do the same as in our Productivity-System; Version: OTRS 3.2.14. (And here it works) Here I copied the Action "AgentTicketPhone" to "AgentQuickticket". Therefore I copied and modified: * Part of Ticket.xml to register a new item in the menubar called "Quick-Tickets" (Schnell.xml; /Kernel/Config/Files) * Parts of Ticket.xml to register the mask in SysConfig QuickticketMasken.xml * Parts of Ticket.xml to configurate the mask in SysConfig QuickticketMaskeConf.xml * AgentTicketPhone.pm -> AgentQuickticketMaske.pm (directory: /Custom/Kernel/Modules) To provide the functionality to create a Quick-ticket. * AgentTicketPhone.tt -> AgentQuickticket.tt (directory: /Custom/Kernel/Output/HTML/Standard) All this works - if I call the function to create a Quick-Ticket, the mask appears. But clicking on button "Create" nothing else happens. I don't get a appropriate message in a logfile, neither the OTRS-Logfile nor the Apache-Logfile. Must I register the new module anywhere else? Isn't it possible in Version OTRS 4 to copy and modify a existing module? Thanks in advance. Sepp ___ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
[dev] New module doesn't work
Hi community, I'm testing OTRS 4.0.10 To create new tickets in a very quick way, I copied the module "AgentTicketPhone". In the menubar is a new entry called "Quick-Tickets". Klicking on this item is opening an overview about several categories. Clicking on one of these categories is opening a mask to create a new ticket. The mask contains only a DynamicField to leave a message abut the ticket. All other options are prefilled / preselected and not visible. When clicking the create-Button, nothing happens. But there is no message in the LogFiles (neither the Apache-LogFile nor the OTRS-LogFile) When using the Action "New Phone ticket", the ticket will be created. I did the same on our Productivity-Instance of OTRS (OTRS 3.2.14) and ther it still works. Here is in detail, what I did: 1.) Register the overview in SysConfig file: Schnell.xml directory: Kernel/Config/Files 2.) Modul for the Overview file: AgentQuickticket.pm directory: /Custom/Kernel/Modules 3.) Core-module for the Overview file: AgentQuickticket.pm directory: /Kernel/System 4.) Register the Mask "Creating Quickticket" file: AgentQuickticketMaske.xml directory: /Kernel/Config/Files This is a modified copy of section: Ticket Frontend::Agent::ModuleRegistration ... Action=AgentQuickticketMaske (see: Ticket.xml) 5.) File to configurate the mask "Creating Quick-Ticket" file: AgentQuickticketMaskeConf.xml directory: /Kernel/Config/Files This is a modified copy of the section Sets the default priority for new phone tickets in the agent interface. Ticket Frontend::Agent::Ticket::ViewPhoneNew ... (see: Ticket.xml) 6.) Modul for Action "AgentQuickticketMaske" file: AgentQuickticketMaske.pm directory: /Custom/Kernel/Modules This is a modified copy of "AgentTicketPhone.pm". It's calling the TemplateFile "AgentQuickticketMaske.tt". Changes: package Kernel::Modules::AgentQuickticketMaske; ... TemplateFile => 'AgentQuickticketMaske', ... # create new ticket, do db insert Here is the preselection of values for creating a ticket. 7.) TemplateFile file: AgentQuickticketMaske.tt directory: /Custom/Kernel/Output/HTML/Standard Doing this, I walk along the instructions of the developer manual, chapter: "Writing a new OTRS frontend module". Is there any step missing? Is there any idea, what's going wrong? Thans in advance. Sepp ___ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
Re: [dev] New module doesn't work
Hi Sepp, can you post the code? *) In your config file, you should replace "Frontend::Module###AgentTicketPhone" with "Frontend::Module###AgentQuickticketMaske" *) You shouldn't need the module in Kernel/System as you do not work with a new database table. *) Replace all "AgentTicketPhone" with "AgentQuickticketMaske" in your config files *) It's hard to find errors without seeing actual code... Regards, Renée Am 14.09.2015 um 13:16 schrieb Josef1 Penzkofer: > Hi community, > > I'm testing OTRS 4.0.10 > > To create new tickets in a very quick way, I copied the module > "AgentTicketPhone". > > In the menubar is a new entry called "Quick-Tickets". Klicking on this item > is opening an overview about several categories. > > Clicking on one of these categories is opening a mask to create a new ticket. > The mask contains only a DynamicField to leave a message abut the ticket. All > other options are prefilled / preselected and not visible. > > When clicking the create-Button, nothing happens. > > But there is no message in the LogFiles (neither the Apache-LogFile nor the > OTRS-LogFile) > > When using the Action "New Phone ticket", the ticket will be created. > > I did the same on our Productivity-Instance of OTRS (OTRS 3.2.14) and ther it > still works. > > Here is in detail, what I did: > 1.) Register the overview in SysConfig > file: Schnell.xml > directory: Kernel/Config/Files > > 2.) Modul for the Overview > file: AgentQuickticket.pm > directory: /Custom/Kernel/Modules > > 3.) Core-module for the Overview > file: AgentQuickticket.pm > directory: /Kernel/System > > 4.) Register the Mask "Creating Quickticket" > file: AgentQuickticketMaske.xml > directory: /Kernel/Config/Files > > This is a modified copy of section: > > Ticket > Frontend::Agent::ModuleRegistration > ... > Action=AgentQuickticketMaske > (see: Ticket.xml) > > 5.) File to configurate the mask "Creating Quick-Ticket" > file: AgentQuickticketMaskeConf.xml > directory: /Kernel/Config/Files > This is a modified copy of the section > Valid="1"> > Sets the default priority for new phone tickets > in the agent interface. > Ticket > Frontend::Agent::Ticket::ViewPhoneNew > ... > (see: Ticket.xml) > > 6.) Modul for Action "AgentQuickticketMaske" > file: AgentQuickticketMaske.pm > directory: /Custom/Kernel/Modules > > This is a modified copy of "AgentTicketPhone.pm". It's calling the > TemplateFile "AgentQuickticketMaske.tt". > > Changes: > package Kernel::Modules::AgentQuickticketMaske; > ... > TemplateFile => 'AgentQuickticketMaske', > ... > # create new ticket, do db insert > Here is the preselection of values for creating a ticket. > > 7.) TemplateFile > file: AgentQuickticketMaske.tt > directory: /Custom/Kernel/Output/HTML/Standard > > Doing this, I walk along the instructions of the developer manual, chapter: > "Writing a new OTRS frontend module". > > Is there any step missing? > > Is there any idea, what's going wrong? > > Thans in advance. > > Sepp > > > > > > ___ > OTRS mailing list: dev - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/dev > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev -- Perl / OTRS development: http://perl-services.de OTRS AddOn repository: http://opar.perl-services.de ___ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev