Perl script modification

已取消 已发布的 5 年前 货到付款
已取消 货到付款

I'm having my custom JS included by the OTRS ticket system which is based on Perl.

Problem is that since an update I am missing a JS variable from the core system.

This JS script loads extra options into the ticket compose views. In this case a wizard with lots of input options to generate a text template. The extra options show dependent on the response template (ReponseID) that the user has selected.

Also it does remember the selected wizard options for this ticket so the user can reopen the wizard and regenerate the text over and over until it is correct.

To make this work correctly I need

* ResponseID to know which template we are having open

* TicketID and UserId to remember the settings for this specific ticket and user

Actual task here:

Since a previous update of the OTRS system I am lacking the UserID. Previously I got it by [login to view URL]('UserID') from the JS framework of OTRS itself.

The systems seems not to easily expose this value anymore or just I could not find it exposed.

You need to tell me what to modify in order to have access to the current user's ID again.

Specifics:

I need the UserId exposed as JS variable in ticket response view (Action=AgentTicketCompose) and in new ticket compose view (Action=AgentTicketEmail).

The system allows to replace any of the core files by overriding them with a modified copy in

Custom\..

E.g. I am overriding Kernel\GenericInterface\Operation\Ticket\[login to view URL] with Custom\Kernel\GenericInterface\Operation\Ticket\[login to view URL]

I'm including my own JS by placing it into var\httpd\htdocs\js\thirdparty\custom which works fine.

This is the github link to what I think is the commit after which exposure of

[login to view URL]('UserID') stopped working.

[login to view URL]

How I can help here:

I'm a PHP developer and linux admin but not particularly deep into perl and I don't have time which is why I am asking for help here.

However I can definitely try your suggestion if you send me what to paste into which file and line.

Estimated time budget:

I believe that if you know both OTRS and perl programming this can be solved in less than 30min.

If you know perl but did not work with OTRS it might take you 2-3 hours.

You will not have access to the live system. So either you are sure enough things will work and just tell me what to place where or you got to install your own test system which will take more time. (OTRS is available as a package on many *nix systems as well as on Amazon or as Turnkey image)

JavaScript Perl

项目ID: #18258374

关于项目

2个方案 远程项目 活跃的5 年前

有2名威客正在参与此工作的竞标,均价$153/小时

justdotweaks

Hello, I am a Technical Developer working on following Technologies :- #- Basic Skills(HTML5,CSS3,Bootstrap4,AJAX, Javascript, jQuery / Prototype) #- CMS(WordPress, Prestashop, Shopify) #- MEAN S 更多

$155 USD 在3天内
(14条评论)
5.0
vw8001203vw

Hi I am well experienced in perl & JS and ready to take this. Honestly i dont have prev experience in otrs but with your help i think i can fix this issue Thank you Sinto

$150 USD 在2天内
(2条评论)
3.0