View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 04433 | Bug reports | Survey taking | public | 2010-06-18 20:02 | 2010-07-06 11:22 |
| Reporter | tpartner | Assigned To | tpartner | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 1.90RC1 | ||||
| Summary | 04433: "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. | ||||
| Tags | No 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)
{
| ||||
| Bug heat | 2 | ||||
| Complete LimeSurvey version number (& build) | 8859 | ||||
| I will donate to the project if issue is resolved | |||||
| Browser | FF and IE | ||||
| Database type & version | MySQL 5.1.41 | ||||
| Server OS (if known) | Windows NT | ||||
| Webserver software & version (if known) | Apache/2.2.14 | ||||
| PHP Version | 5.3.1 | ||||
| Git branch / Pull Request URL | |||||
| 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 |