View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
04920Bug reportsSurvey takingpublic2011-02-17 18:25
ReporterMazi Assigned Tolemeur  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91RC3 
Target Version1.91RC4Fixed in Version1.91RC4 
Summary04920: Notice when using INSERTANS placeholders and "all-in-one" survey format
Description

When using INSERTANS placeholders to display the result of a previous answer at another question, there is a warning in all-in-one mode. Of course it isn't possible to use placeholders in all-in-one mode but we should remove the warnings:
Notice: Undefined index: srid in C:\xampp\htdocs\limeSOURCE\limesurvey_current\classes\dTexts\dFunctions\dFunctionInsertAns.php on line 13

Notice: Undefined index: sid in C:\xampp\htdocs\limeSOURCE\limesurvey_current\classes\dTexts\dFunctions\dFunctionInsertAns.php on line 14

Notice: Undefined index: srid in C:\xampp\htdocs\limeSOURCE\limesurvey_current\classes\dTexts\dFunctions\dFunctionInsertAns.php on line 13

Notice: Undefined index: sid in C:\xampp\htdocs\limeSOURCE\limesurvey_current\classes\dTexts\dFunctions\dFunctionInsertAns.php on line 14

Steps To Reproduce
  1. Import the attached sample survey
  2. Activate it
  3. Run it
TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)9715
I will donate to the project if issue is resolvedNo
BrowserFirefox 3.6
Database type & versionMySQL 5
Server OS (if known)Win 7
Webserver software & version (if known)Apache 2.2
PHP Version5.3.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

lemeur

lemeur

2011-02-09 00:43

developer   ~14097

Can't reproduce.

Could it be because of the INSERTANS import bug which was fixed ?

Mazi

Mazi

2011-02-09 01:32

updater   ~14100

I don't think so, even with correct INSERTANS the warning is shown.

Did you take care of "there is a warning in all-in-one mode" -> Did you switch the survey to all-in-one mode?

lemeur

lemeur

2011-02-12 08:57

developer   ~14169

yes I did, in fact it is already set to all-in-one.
I still can't reproduce.

However Carsten did add a if_isset check in rev 9770.

This should fix part of the issue. I still don't understand why I can't see the other issue you're having.
I don't understand either why $sid is required in this file.

Anyway, I fixed something in rev 9777.

Can you try ?

Mazi

Mazi

2011-02-12 14:00

updater   ~14181

Problem seems to be fixed, there are no more notices.

Fixed at rev. 9777, thanks to Thibault.

c_schmitz

c_schmitz

2011-02-17 18:25

administrator   ~14216

1.91RC4 released

Issue History

Date Modified Username Field Change
2011-02-02 14:17 Mazi New Issue
2011-02-02 14:17 Mazi Status new => assigned
2011-02-02 14:17 Mazi Assigned To => lemeur
2011-02-02 14:17 Mazi File Added: limesurvey_survey_63248.lss
2011-02-09 00:43 lemeur Note Added: 14097
2011-02-09 00:43 lemeur Status assigned => feedback
2011-02-09 01:32 Mazi Note Added: 14100
2011-02-09 01:32 Mazi Status feedback => assigned
2011-02-12 08:57 lemeur Note Added: 14169
2011-02-12 08:57 lemeur Status assigned => feedback
2011-02-12 14:00 Mazi Note Added: 14181
2011-02-12 14:00 Mazi Status feedback => assigned
2011-02-12 14:00 Mazi Status assigned => resolved
2011-02-12 14:00 Mazi Fixed in Version => 1.91RC4
2011-02-12 14:00 Mazi Resolution open => fixed
2011-02-17 18:25 c_schmitz Note Added: 14216
2011-02-17 18:25 c_schmitz Status resolved => closed