View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05568Bug reportsImport/Exportpublic2011-11-10 12:27
Reporteruser16048Assigned Totpartner  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91+ 
Summary05568: export: Check dependencies of used design template and uploaded images and show hint/message
Description

I tried to export a survey that uses an own design template and an image that has been uploaded with the "cke"-HTML-Editor.
I then tried to import the survey into another installation of LimeSurvey. The "own" design template is not there so the default template was used. The HTML-Code of the image is still in the question but the image file is missing (because the /upload/survey/xxxxx/ folder has not been exported.)

It would be nice if there is a message that tells the dependencies of the used template/images of the survey when exporting the survey, for example "This survey uses a non-standard design template. When exporting the survey the design template will not be exported."

Steps To Reproduce
  • Copy/Create a new design template
  • Create a new survey
  • Create a question, use cke to upload an image to the server and use this image in the question
  • Export the survey as lss file

(a) same installation

  • Delete the survey
  • Import the survey using the lss file
  • Clear browser cache/reload survey in test mode
  • Check the HTML-Code of the question

(b) diffrent installation

  • Import the survey using the lss file
  • Clear browser cache/reload survey in test mode
  • Check the HTML-Code of the question
Additional Information

From lss file

<template><![CDATA[LeeresLayout]]></template> <!-- own template used for the survey -->

...

<question><![CDATA[


A short text with an image/p>


<img alt="" src="/umfragen/upload/surveys/69329/images/Profilbild.jpg" style="width: 178px; height: 178px;" />


]]></question> <!-- image uploaded via cke Editor -->

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)11232
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql
Server OS (if known)Windows XP
Webserver software & version (if known)xampp
PHP Version5.3.8
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

tpartner

tpartner

2011-11-09 23:16

partner   ~16644

Last edited: 2011-11-09 23:16

I don't believe this is a bug.

You are referring to two separate issues.

1) Templates are not exported with a survey - you will need to export the template with FTP or from the template editor.

2) Survey resources are not exported with the survey - you only get a .lss file (which is an XML file). This means that any images uploaded when creating questions will also need to be manually migrated when moving the survey.

user16048

2011-11-10 08:53

  ~16645

You'ra correct, but both templates and used images are dependencies of the survey.

Even if they are not exported automatically it would nice to get a message telling me that the used template or images have to be exported manually.

Mazi told me in LimeSurvey 2.0 there will be feature for exporting the whole survey (as a .zip file). Even then it would (in my opinion) be necessary to check/tell the dependencies so users don't loose anything when exporting a (part of) the survey.

alternative:
Show a static message saying "Please note that x, y and z are not exported with this feature. You have to export them manually.".

tpartner

tpartner

2011-11-10 12:27

partner   ~16648

Those are valid points but I still don't see this as a bug.

Please submit your ideas and solutions as a feature request - http://ideas.limesurvey.org/.

Issue History

Date Modified Username Field Change
2011-11-09 09:35 user16048 New Issue
2011-11-09 23:16 tpartner Note Added: 16644
2011-11-09 23:16 tpartner Note Edited: 16644
2011-11-09 23:16 tpartner Assigned To => tpartner
2011-11-09 23:16 tpartner Status new => feedback
2011-11-10 08:53 user16048 Note Added: 16645
2011-11-10 08:53 user16048 Status feedback => assigned
2011-11-10 12:27 tpartner Note Added: 16648
2011-11-10 12:27 tpartner Status assigned => closed
2011-11-10 12:27 tpartner Resolution open => fixed