Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #18071: Importing Question through Remote Control may fa…
…il if the imported question already exists (#3016)
- Loading branch information
Showing
5 changed files
with
765 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
125 changes: 125 additions & 0 deletions
125
tests/data/surveys/limesurvey_question_import_question_test.lsq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document> | ||
<LimeSurveyDocType>Question</LimeSurveyDocType> | ||
<DBVersion>366</DBVersion> | ||
<languages> | ||
<language>en</language> | ||
</languages> | ||
<questions> | ||
<fields> | ||
<fieldname>qid</fieldname> | ||
<fieldname>parent_qid</fieldname> | ||
<fieldname>sid</fieldname> | ||
<fieldname>gid</fieldname> | ||
<fieldname>type</fieldname> | ||
<fieldname>title</fieldname> | ||
<fieldname>question</fieldname> | ||
<fieldname>preg</fieldname> | ||
<fieldname>help</fieldname> | ||
<fieldname>other</fieldname> | ||
<fieldname>mandatory</fieldname> | ||
<fieldname>question_order</fieldname> | ||
<fieldname>language</fieldname> | ||
<fieldname>scale_id</fieldname> | ||
<fieldname>same_default</fieldname> | ||
<fieldname>relevance</fieldname> | ||
<fieldname>modulename</fieldname> | ||
</fields> | ||
<rows> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<parent_qid><![CDATA[0]]></parent_qid> | ||
<sid><![CDATA[124268]]></sid> | ||
<gid><![CDATA[1388]]></gid> | ||
<type><![CDATA[T]]></type> | ||
<title><![CDATA[Q00]]></title> | ||
<question><![CDATA[Test question. Please answer this question:]]></question> | ||
<preg/> | ||
<help><![CDATA[This is a question help text.]]></help> | ||
<other><![CDATA[N]]></other> | ||
<mandatory><![CDATA[N]]></mandatory> | ||
<question_order><![CDATA[0]]></question_order> | ||
<language><![CDATA[en]]></language> | ||
<scale_id><![CDATA[0]]></scale_id> | ||
<same_default><![CDATA[0]]></same_default> | ||
<relevance><![CDATA[1]]></relevance> | ||
</row> | ||
</rows> | ||
</questions> | ||
<question_attributes> | ||
<fields> | ||
<fieldname>qid</fieldname> | ||
<fieldname>attribute</fieldname> | ||
<fieldname>value</fieldname> | ||
<fieldname>language</fieldname> | ||
</fields> | ||
<rows> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<attribute><![CDATA[encrypted]]></attribute> | ||
<value><![CDATA[N]]></value> | ||
<language/> | ||
</row> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<attribute><![CDATA[hidden]]></attribute> | ||
<value><![CDATA[0]]></value> | ||
<language/> | ||
</row> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<attribute><![CDATA[hide_tip]]></attribute> | ||
<value><![CDATA[0]]></value> | ||
<language/> | ||
</row> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<attribute><![CDATA[id]]></attribute> | ||
<value><![CDATA[17435]]></value> | ||
<language/> | ||
</row> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<attribute><![CDATA[page_break]]></attribute> | ||
<value><![CDATA[0]]></value> | ||
<language/> | ||
</row> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<attribute><![CDATA[same_script]]></attribute> | ||
<value><![CDATA[0]]></value> | ||
<language/> | ||
</row> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<attribute><![CDATA[statistics_graphtype]]></attribute> | ||
<value><![CDATA[0]]></value> | ||
<language/> | ||
</row> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<attribute><![CDATA[statistics_showgraph]]></attribute> | ||
<value><![CDATA[1]]></value> | ||
<language/> | ||
</row> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<attribute><![CDATA[time_limit_action]]></attribute> | ||
<value><![CDATA[1]]></value> | ||
<language/> | ||
</row> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<attribute><![CDATA[time_limit_disable_next]]></attribute> | ||
<value><![CDATA[0]]></value> | ||
<language/> | ||
</row> | ||
<row> | ||
<qid><![CDATA[26957]]></qid> | ||
<attribute><![CDATA[time_limit_disable_prev]]></attribute> | ||
<value><![CDATA[0]]></value> | ||
<language/> | ||
</row> | ||
</rows> | ||
</question_attributes> | ||
</document> |
Oops, something went wrong.