View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
04433Bug reportsSurvey takingpublic2010-07-06 11:22
Reportertpartner Assigned Totpartner  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90RC1 
Summary04433: "Exclusive option" setting for multiple options questions causes PHP errors
Description

When using the "Exclusive option" setting on a multiple options question a PHP error occurs:

Notice: Undefined index: code in C:\xampp\htdocs\limeSurveyTest\qanda.php on line 2885

Carsten, could you please check the attached patch for me?

Thanks

Steps To Reproduce

Create multiple options question, assign an exclusive option in the advanced settings, test survey.

TagsNo tags attached.
Attached Files
quanda_tp_20100618.patch (639 bytes)   
Index: qanda.php
===================================================================
--- qanda.php	(revision 8859)
+++ qanda.php	(working copy)
@@ -2882,7 +2882,7 @@
             . "if (doconditioncheck == 'yes') {\n"
             . "\t$checkconditionFunction(thiselt.value, thiselt.name, thiselt.type);\n"
             . "}\n}\n";
-            $excludeallotherscriptoff .= "document.getElementById('answer$ia[1]{$ansrow['code']}').disabled='';\n";
+            $excludeallotherscriptoff .= "document.getElementById('answer$ia[1]{$ansrow['title']}').disabled='';\n";
         }
         elseif (count($excludeallothers)>0)
         {
quanda_tp_20100618.patch (639 bytes)   
Bug heat2
Complete LimeSurvey version number (& build)8859
I will donate to the project if issue is resolved
BrowserFF and IE
Database type & versionMySQL 5.1.41
Server OS (if known)Windows NT
Webserver software & version (if known)Apache/2.2.14
PHP Version5.3.1
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

tpartner

tpartner

2010-06-23 01:36

partner   ~12282

Fixed in rev. 8864

Issue History

Date Modified Username Field Change
2010-06-18 20:02 tpartner New Issue
2010-06-18 20:02 tpartner Status new => assigned
2010-06-18 20:02 tpartner Assigned To => c_schmitz
2010-06-18 20:02 tpartner File Added: quanda_tp_20100618.patch
2010-06-23 01:31 tpartner Assigned To c_schmitz => tpartner
2010-06-23 01:36 tpartner Note Added: 12282
2010-06-23 01:36 tpartner Status assigned => resolved
2010-06-23 01:36 tpartner Resolution open => fixed
2010-07-06 11:22 c_schmitz Status resolved => closed
2010-10-25 00:18 c_schmitz Category Survey at Runtime => Survey taking