View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
05350Bug reportsSurvey takingpublic2011-07-19 17:02
Reporterwabrit Assigned ToDenisChenu  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.91+ 
Fixed in Version1.91+ 
Summary05350: Exit and Clear Survey targets _top not _self; causes problems in iframes
Description

If you select the "Exit and clear survey" button while taking a survey and confirm the action in the pop-up dialog, then if you are running the survey within an iframe (e.g. using an AUI dialog control) this causes the parent window to be reset to the "Answers cleared" page.

This is not the desired behaviour; the iframe should display the Answers Cleared page, and the parent window remain unaffected.

Additional Information

The root cause of the problem appears to be this line in replacements.php

$_clearall .= "', '_top')}\" />";

which always directs the clear action to change the contents of the top window. Changing this to

$_clearall .= "', '_self')}\" />";

constrains the action to effect the current frame instead.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)10494
I will donate to the project if issue is resolvedNo
Browser Chrome/IE/Firefox
Database type & versionMS SQL Server 2008 R2
Server OS (if known)Windows 7
Webserver software & version (if known)Tomcat 6.0.32
PHP Version5.3.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2011-07-19 17:02

developer   ~15800

Fixed in 10546, thanks.

Issue History

Date Modified Username Field Change
2011-07-18 17:58 wabrit New Issue
2011-07-18 19:29 DenisChenu Issue Monitored: DenisChenu
2011-07-19 16:53 DenisChenu Issue End Monitor: DenisChenu
2011-07-19 16:57 DenisChenu Assigned To => DenisChenu
2011-07-19 16:57 DenisChenu Status new => assigned
2011-07-19 17:02 DenisChenu Note Added: 15800
2011-07-19 17:02 DenisChenu Status assigned => closed
2011-07-19 17:02 DenisChenu Resolution open => fixed
2011-07-19 17:02 DenisChenu Fixed in Version => 1.91+