I would like to add IP Address of customer in Ticket Information section, to see when we do AgentTicketZoom. Problem is that it shows "SAME ip" value for all tickets. I hope i am clear.
I added IP label to file AgentTicketZoom.dtl.
Code: Select all
/opt/otrs/Kernel/Output/HTML/Standard/AgentTicketZoom.dtl
<label>IP Addrs : </label><a href="https://www.abc.com/ip?ip_addr=$Env{"REMOTE_ADDR"}" target="_blank" class="DynamicFieldLink" > $Env{"REMOTE_ADDR"} </a>
</label>
Near the very bottom of the file, there's a <script> tag that runs the "Core.Customer.InitFocus();" function. Right beneath that line, i add the following:
Code: Select all
document.getElementById('ipaddr').style.display = 'none';
document.getElementById('IP').style.display = 'none';
document.getElementById("ipaddr").value = "$Env{"REMOTE_ADDR"}";
It make same IP Address for ALL tickets.
IP Addrs : 192.169.159.38
Did i miss something? Any idea ? Please let me know if you have any suggestion or need more problem information.
Many Thanks in advanced for your time and input !