View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
08359Bug reportsImport/Exportpublic2013-11-24 19:05
ReporterResearchOnBlogs Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05 RC 
Target Version2.05+Fixed in Version2.00+ 
Summary08359: import an empty group causes an error
Description

try to import an empty group - get this error:

PHP notice Trying to get property of non-object

sites/limesurvey-205beta/application/helpers/admin/import_helper.php(875)

863 $aGIDReplacements[$oldgid]=$newgid; // add old and new qid to the mapping array
864 }
865 }
866
867
868 // Import questions table ===================================================================================
869
870 // We have to run the question table data two times - first to find all main questions
871 // then for subquestions (because we need to determine the new qids for the main questions first)
872
873
874 $results['questions']=0;
875 foreach ($xml->questions->rows->row as

If no question is in the file it causes this error...

foreach ($xml->questions->rows->row as this is the problem!

A solution

Should be if ($xml->questions){foreach ($xml->questions->rows->row}

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)131105
I will donate to the project if issue is resolvedNo
Browser
Database type & versionx
Server OS (if known)x
Webserver software & version (if known)x
PHP Versionxx

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2013-11-21 00:05

administrator   ~27266

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

c_schmitz

c_schmitz

2013-11-21 00:06

administrator   ~27267

Fix committed to 2.05 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13477

c_schmitz

c_schmitz

2013-11-21 00:06

administrator   ~27268

Thank you!

c_schmitz

c_schmitz

2013-11-24 19:05

administrator   ~27345

2.00+ Build 131122 released

Related Changesets

LimeSurvey: master 94fb2b61

2013-11-20 23:05:50

c_schmitz

Details Diff
Fixed issue 08359: Importing an empty group causes an error Affected Issues
08359
mod - application/helpers/admin/import_helper.php Diff File

LimeSurvey: 2.05 88e2d283

2013-11-20 23:05:50

c_schmitz

Details Diff
Fixed issue 08359: Importing an empty group causes an error Affected Issues
08359
mod - application/helpers/admin/import_helper.php Diff File

Issue History

Date Modified Username Field Change
2013-11-12 16:04 ResearchOnBlogs New Issue
2013-11-21 00:05 c_schmitz Assigned To => c_schmitz
2013-11-21 00:05 c_schmitz Status new => assigned
2013-11-21 00:05 c_schmitz Changeset attached => LimeSurvey master 94fb2b61
2013-11-21 00:05 c_schmitz Note Added: 27266
2013-11-21 00:05 c_schmitz Resolution open => fixed
2013-11-21 00:06 c_schmitz Changeset attached => LimeSurvey 2.05 88e2d283
2013-11-21 00:06 c_schmitz Note Added: 27267
2013-11-21 00:06 c_schmitz Note Added: 27268
2013-11-21 00:06 c_schmitz Status assigned => resolved
2013-11-21 00:06 c_schmitz Fixed in Version => 2.00+
2013-11-22 11:28 c_schmitz Target Version => 2.05+
2013-11-24 19:05 c_schmitz Note Added: 27345
2013-11-24 19:05 c_schmitz Status resolved => closed