RE: Spam in Customer service - Users delete request? og help with script to delete requests in category
Hi Jesper,
as Hans mentioned, remove the curly brackets as well ( { and } ).
We don't advice to edit the original file, instead we advice to take a copy and change the pointers to the copy instead.
This is done by editing the screen choosers (new ticket, reply, edit ticket choosers)
This is also a bit advanced if you haven't done this previously, so I recommend getting help from someone experienced with this.
The code in the screen chooser needs to be something like this:
New Ticket:
setVariable("url", getProgramTicket() + "&action=doScreenDefinition&id=123&actionType=0");
Reply:
String url = getProgramTicket() + "&action=doScreenDefinition&id=123&actionType=1&entryId=" + getVariable("entryId");
if(getCgiVariable("copyToAll") == "true")
url.append("©ToAll=true");
setVariable("url", url);
Edit:
setVariable("url", getProgramTicket() + "&action=doScreenDefinition&id=123&actionType=2&entryId=" + getVariable("entryId")");
where you change 123 with the id of your copied screen.
Note that my example code isn't necessarily correct, and it is recommended that you test it thoroughly.