Possible bug in FAQ Module 2.3.1

Moderator: crythias

Locked
keitarobr
Znuny newbie
Posts: 16
Joined: 10 Jan 2013, 22:41
Znuny Version: 4.0.3
Real Name: Rodrigo Gonçalves
Company: UFSC

Possible bug in FAQ Module 2.3.1

Post by keitarobr »

Hi,

while upgrading our OTRS from 3.1 to 3.3 we have faced an issue with the FAQ module with the Chrome browser: it would load the whole page inside the sections of the FAQ (in PublicFAQZoom and CustomerFAQZoom) instead of just the text.

We found that the issue is related to this part:
<iframe sandbox="allow-same-origin allow-popups" security="restricted" class="FAQField" id="IframeFAQ$QData{"Field"}" onload="if (typeof FAQ === 'object' && typeof FAQ.Customer === 'object' && typeof FAQ.Customer.FAQZoom === 'object') { FAQ.Customer.FAQZoom.IframeAutoHeight($('#IframeFAQ$QData{"Field"}')); };" src="#" data-src="$Env{"Baselink"}Action=CustomerFAQZoom;Subaction=HTMLView;ItemID=$QData{"ItemID"};Field=$QData{"Field"};$QEnv{"SessionName"}=$QEnv{"SessionID"}"></iframe>


The issue is with the src="#" attribute - in Chrome this makes the browser load the entire page inside the iframe sometimes (even though the javascript should overwrite it with only the text, copying from data-src). By removing the attribute (leaving only data-src) the issue was fixed and the page behaves as expected.

We've looked into the OTRS bug tracker but found nothing.
Locked