LimeSurvey issue tracker
Registration

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
04996Bug reports[All Projects] Import/Exportpublic2011-03-03 15:592011-03-10 12:28
Reporteryohann 
Assigned Tolemeur 
PriorityhighSeveritymajor 
StatusclosedResolutionfixed 
Product Version1.91RC4 
Target VersionFixed in Version1.91RC5 
Summary04996: Conditions based on Token attributes are exported in xml but aren't imported
Descriptioncondition based on token:attribute_1 == constant aren't imported, export give the fallowing:
<row>
  <cid><![CDATA[215]]></cid>
  <qid><![CDATA[56]]></qid>
  <scenario><![CDATA[1]]></scenario>
  <cqid><![CDATA[0]]></cqid>
  <cfieldname><![CDATA[{TOKEN:ATTRIBUTE_1}]]></cfieldname>
  <method><![CDATA[==]]></method>
  <value><![CDATA[Auto-RĂ©pondant]]></value>
</row>
but once imported, the condition dispear
Steps To Reproducecreate a condition based on token:attribute
export survey
check lss file : the condition is here
import lss file : the condition isn't here anymore
I will donate to the project if issue is resolved within 48 hrsNo
LimeSurvey build number OR git commit ID9716
Browserfirefox
Database & DB-Version145
Operating System (Server)Linux (Ubuntu)
Webserver software & versionapache2
PHP Version5.3.3-1ubuntu9.3 with Suhosin-Patch (cli) (built: Jan 12 2011 16:08:14)
Attached Filespatch file icon import_function.patch [^] (2,023 bytes) 2011-03-03 16:45 [Show Content]
patch file icon import_functions.patch [^] (2,065 bytes) 2011-03-07 15:50 [Show Content]

- Relationships

-  Notes
User avatar (14312)
yohann (reporter)
2011-03-03 16:45

here is a patch (a bit dirty but works for me)

if cqid is 0 it doesn't just skip the condition, but instead look for "TOKEN_ATTRIBUTE" in cfiedname, if there is a string like that we insert conditions data and increment condition counter before we continue
User avatar (14317)
yohann (reporter)
2011-03-07 15:52

Sorry about the first patch, i forgot to unsed cid so it works the first time, but fail once the id of condidion exists, the second patch is better (one line more which unset cid before insert condition in database)
User avatar (14321)
lemeur (administrator)
2011-03-07 18:35

Fixed in rev 9851 and 9852.
Thx for the detailed anaylis of the pb.
User avatar (14379)
c_schmitz (administrator)
2011-03-10 12:28

1.91RC5 released.

- Issue History
Date Modified Username Field Change
2011-03-03 15:59 yohann New Issue
2011-03-03 16:45 yohann Note Added: 14312
2011-03-03 16:45 yohann File Added: import_function.patch
2011-03-07 15:50 yohann File Added: import_functions.patch
2011-03-07 15:52 yohann Note Added: 14317
2011-03-07 16:55 Mazi Assigned To => lemeur
2011-03-07 16:55 Mazi Status new => assigned
2011-03-07 18:35 lemeur Note Added: 14321
2011-03-07 18:35 lemeur Status assigned => resolved
2011-03-07 18:35 lemeur Fixed in Version => 1.91RC5
2011-03-07 18:35 lemeur Resolution open => fixed
2011-03-10 12:28 c_schmitz Note Added: 14379
2011-03-10 12:28 c_schmitz Status resolved => closed


Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker