Open olifre opened 2 weeks ago
Clicking on "From" and "To" in an article should expand the full mail address, i.e.:
John Doe
should be expanded to:
John Doe <john.doe@example.com>
(and unexpanded again when clicking again).
This works if a ticket is visited directly, i.e.: https://someserver.example.com/znuny/index.pl?Action=AgentTicketZoom;TicketID=1234 but fails either if:
Steps to reproduce the behavior:
This is a regression caused by: https://github.com/znuny/Znuny/commit/4f3baef3323b510ea012d0d6f290f579bc65449e which adapted the template to use div instead of p, but only adapted the javascript code in: https://github.com/znuny/Znuny/blob/86309bb873dca6bbcb789d9e8a50ad63be8cdc1d/var/httpd/htdocs/js/Core.Agent.TicketZoom.js#L787-L790 (i.e. Init of Core.Agent.TicketZoom), but not in: https://github.com/znuny/Znuny/blob/86309bb873dca6bbcb789d9e8a50ad63be8cdc1d/var/httpd/htdocs/js/Core.Agent.TicketZoom.js#L213-L216 (i.e. LoadArticle of Core.Agent.TicketZoom).
div
p
Init
Core.Agent.TicketZoom
LoadArticle
Adapting the second location should fix the problem :wink: .
Internal Issue# 991
Environment
Expected behavior
Clicking on "From" and "To" in an article should expand the full mail address, i.e.:
should be expanded to:
(and unexpanded again when clicking again).
Actual behavior
This works if a ticket is visited directly, i.e.: https://someserver.example.com/znuny/index.pl?Action=AgentTicketZoom;TicketID=1234 but fails either if:
How to reproduce
Steps to reproduce the behavior:
Additional information
This is a regression caused by: https://github.com/znuny/Znuny/commit/4f3baef3323b510ea012d0d6f290f579bc65449e which adapted the template to use
div
instead ofp
, but only adapted the javascript code in: https://github.com/znuny/Znuny/blob/86309bb873dca6bbcb789d9e8a50ad63be8cdc1d/var/httpd/htdocs/js/Core.Agent.TicketZoom.js#L787-L790 (i.e.Init
ofCore.Agent.TicketZoom
), but not in: https://github.com/znuny/Znuny/blob/86309bb873dca6bbcb789d9e8a50ad63be8cdc1d/var/httpd/htdocs/js/Core.Agent.TicketZoom.js#L213-L216 (i.e.LoadArticle
ofCore.Agent.TicketZoom
).Adapting the second location should fix the problem :wink: .