View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
05407Bug reportsSurvey editingpublic2012-03-11 16:32
ReporterTMSWhite Assigned Tomagiclko 
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00a1 
Target Version2.00a2Fixed in Version2.00a2 
Summary05407: Can't add sub-questions to Array or answeroptions to List - parameters not expanded
Description

Array 5 point choice. When click on "you need to add sub-questions", get this error:

"The URI you submitted has disallowed characters"

The URI in question is:

http://localhost/limesurvey_ci/index.php/admin/survey/view/29975/1/$scriptname?sid={$surveyid}&gid={$gid}&qid={$qid}&action=editsubquestions

The same problem occurs for List question when you click the icon to add answer options, it generates this URL:

http://localhost/limesurvey_ci/index.php/admin/survey/view/29975/1/$scriptname?sid={$surveyid}&gid={$gid}&qid={$qid}&action=editansweroptions

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)10763
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMysql 5.2
Server OS (if known)Windows XP
Webserver software & version (if known)Apache 2
PHP Version5.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-08-18 21:46

administrator   ~16101

Afaik it is not implemented yet. Should be there very soon.

magiclko

magiclko

2011-08-18 22:12

reporter   ~16102

Last edited: 2011-08-18 22:13

c_schmitz : It has been implemented. Just the wrong url. Fixed it.

TMSWhite

TMSWhite

2011-08-18 23:44

reporter   ~16103

Thanks!. It now works for Array. Note, however, that although it visibly works for List, I get this error message:

Notice: Undefined index: sortorder in admin/question.php(159)

Also, when I try to edit the list in a dual language survey (english/german), I get this error (I get the same error for Array Dual-Scale - edit answer options):

Fatal error: Call to a member function GetOne() on a non-object in C:\xampp\htdocs\limesurvey_ci\application\controllers\admin\question.php on line 120

Similarly, for Array 5 point, edit sub-questions in a 2 language survey, I get this (and get the same error for Array Dual-Scale edit sub-questions):

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and scale_id=0' at line 1

SELECT count(*) AS countall FROM lime_questions WHERE parent_qid=17 AND language='de' AND qid= and scale_id=0

Filename: C:\xampp\htdocs\limesurvey_ci\system\database\DB_driver.php

Line Number: 330

TMSWhite

TMSWhite

2011-08-19 00:35

reporter   ~16104

There is a similar URL problem with adding default values. I get this URL:

http://localhost/limesurvey_ci/index.php/admin/question/answeroptions/55681/3/$scriptname?action=editdefaultvalues&sid=$surveyid&gid=$gid&qid=$qid

magiclko

magiclko

2011-08-19 16:11

reporter   ~16107

TMSWhite : Thanks, that action wasn't implemented then. Now, it works.

TMSWhite

TMSWhite

2011-08-23 06:47

reporter   ~16113

One more - the HTML pop-up editor has the same problem even with most recent _ci updates. For example (pop-up editing group, question, help, question (2nd language):

http://localhost/limesurvey_ci/index.php/admin/questiongroup/edit/55681/%22http://localhost/limesurvey_ci/admin/htmleditor-popup.php?fieldname=description_en&fieldtext=[Description:]%28en%29&fieldtype=group-desc&action=editgroup&sid=55681&gid=12&qid=&lang=%22en

http://localhost/limesurvey_ci/index.php/admin/question/editquestion/55681/17/%22http://localhost/limesurvey_ci/admin/htmleditor-popup.php?fieldname=question_en&fieldtext=[Question:]%28en%29&fieldtype=question-text&action=editquestion&sid=55681&gid=17&qid=197&lang=%22en

http://localhost/limesurvey_ci/index.php/admin/question/editquestion/55681/17/%22http://localhost/limesurvey_ci/admin/htmleditor-popup.php?fieldname=help_en&fieldtext=[Help:]%28en%29&fieldtype=question-help&action=editquestion&sid=55681&gid=17&qid=197&lang=%22en

http://localhost/limesurvey_ci/index.php/admin/question/editquestion/55681/17/%22http://localhost/limesurvey_ci/admin/htmleditor-popup.php?fieldname=question_de&fieldtext=[Question:]%28de%29&fieldtype=question-text&action=editquestion&sid=55681&gid=17&qid=197&lang=%22en

magiclko

magiclko

2011-08-27 19:10

reporter   ~16174

TMSWhite : Can you update and check again? Controller wasn't implemented then, now it should work.

TMSWhite

TMSWhite

2011-08-31 22:33

reporter   ~16184

magiclko-

The popup editors are working. However, it seems to be running htmlspecialchars() on the portions of the string that are between HTML tags. So, single and double quotes, ampersands, etc. are all replaced with HTML entities, but <table border="1"> does not have the quotes for the border attribute replaced.

Is this the desired behavior? For Expression Manager, I make heavy use of quotes within Expressions. Perhaps one option is to not run htmlspecialchars() on expressions surrounded by curly braces?

-Tom

TMSWhite

TMSWhite

2012-01-20 15:43

reporter   ~16852

This works fine in Yii version

c_schmitz

c_schmitz

2012-03-11 16:32

administrator   ~17867

2.00alpha 2 Build 120212 released

Issue History

Date Modified Username Field Change
2011-08-18 17:05 TMSWhite New Issue
2011-08-18 21:46 c_schmitz Assigned To => magiclko
2011-08-18 21:46 c_schmitz Status new => assigned
2011-08-18 21:46 c_schmitz Note Added: 16101
2011-08-18 22:12 magiclko Note Added: 16102
2011-08-18 22:13 magiclko Note Edited: 16102
2011-08-18 23:44 TMSWhite Note Added: 16103
2011-08-19 00:35 TMSWhite Note Added: 16104
2011-08-19 16:11 magiclko Note Added: 16107
2011-08-23 06:47 TMSWhite Note Added: 16113
2011-08-27 19:10 magiclko Note Added: 16174
2011-08-31 22:33 TMSWhite Note Added: 16184
2012-01-20 15:43 TMSWhite Note Added: 16852
2012-01-20 15:43 TMSWhite Status assigned => resolved
2012-01-20 15:43 TMSWhite Resolution open => fixed
2012-01-24 21:33 c_schmitz Fixed in Version => 2.00a2
2012-01-24 21:33 c_schmitz Target Version => 2.00a2
2012-01-24 21:33 c_schmitz Description Updated
2012-03-11 16:32 c_schmitz Note Added: 17867
2012-03-11 16:32 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing