View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
09814Bug reportsInstallationpublic2015-08-24 12:35
Reporterfvanderstarre Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.06+ 
Summary09814: copying array question - only first subquestion and answer option copied
Description

I'm using L.S. 2.05+ build 150310 on Linux RHEL 7, PHP 5.4.43. When copying an array type question having multiple subquestions and answer options, only the first ones are copied. I suspect this has something to do with this OS/PHP version combination, because on Linux RHEL 5.5/PHP 5.3.3 it goes OK (same LS build).
Also tested build 2.05+ build 150310, and 2.06+ build 150729.

Steps To Reproduce

Set up survey with array question with multiple subquestions and answers. Copy this question.

Additional Information

I changed the relevant code in ../application/controllers/admin/database.php (lines 474 & 496).
$r1 = Question::model()->getSubQuestions(returnGlobal('oldqid'));
"while ($qr1 = $r1->read())" changed to "$qra = $r1->readAll();
foreach ($qra as $qr1)"

$r1 = Answer::model()->getAnswers(returnGlobal('oldqid'));
"while ($qr1 = $r1->read())" changed to "$qra = $r1->readAll();
foreach ($qra as $qr1)"

This solved the problem in my setup.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)205+ 140915, 150310, 150729
I will donate to the project if issue is resolvedNo
BrowserAny
Database type & versionMS SQL server 2008 10.0.5500.0 (X64)
Server OS (if known)DB server: Windows NT 6.1 <X64> build 7601 SP1
Webserver software & version (if known)Linux RHEL 7, Apache 2.4.6
PHP Version5.4.43

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2015-08-12 14:11

administrator   ~32930

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=15725

c_schmitz

c_schmitz

2015-08-12 14:12

administrator   ~32931

Fix committed to develop branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=15726

c_schmitz

c_schmitz

2015-08-12 14:12

administrator   ~32932

Great catch. Thank you.

c_schmitz

c_schmitz

2015-08-24 12:35

administrator   ~32991

2.06+ Build 150824 released

Related Changesets

LimeSurvey: master 7cd31dc0

2015-08-12 12:11:05

c_schmitz

Details Diff
Fixed issue 09814: When copying a question with subquestion/answer options onlyt the first one is copied Affected Issues
09814
mod - application/controllers/admin/database.php Diff File

LimeSurvey: develop c295e82e

2015-08-12 12:11:05

c_schmitz

Details Diff
Fixed issue 09814: When copying a question with subquestion/answer options onlyt the first one is copied Affected Issues
09814
mod - application/controllers/admin/database.php Diff File

Issue History

Date Modified Username Field Change
2015-08-05 07:40 fvanderstarre New Issue
2015-08-12 14:11 c_schmitz Changeset attached => LimeSurvey master 7cd31dc0
2015-08-12 14:11 c_schmitz Note Added: 32930
2015-08-12 14:11 c_schmitz Assigned To => c_schmitz
2015-08-12 14:11 c_schmitz Resolution open => fixed
2015-08-12 14:12 c_schmitz Status new => assigned
2015-08-12 14:12 c_schmitz Changeset attached => LimeSurvey develop c295e82e
2015-08-12 14:12 c_schmitz Note Added: 32931
2015-08-12 14:12 c_schmitz Note Added: 32932
2015-08-12 14:12 c_schmitz Status assigned => resolved
2015-08-12 14:12 c_schmitz Fixed in Version => 2.06+
2015-08-24 12:35 c_schmitz Note Added: 32991
2015-08-24 12:35 c_schmitz Status resolved => closed