View Issue Details

IDProjectCategoryView StatusLast Update
14250Bug reports[All Projects] Import/Exportpublic2018-11-21 14:39
ReporterDenisChenu Assigned ToLouisGac  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version3.15.x 
Target VersionFixed in Version 
Summary14250: Unable to import some survey lss with debug=2
Description

Survey seems to work good, but receuve a notice when try to import

Steps To Reproduce

Try to import included survey : seems toi be a parent issue

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.15.4 github
I will donate to the project if issue is resolvedNo
Browserff
Database & DB-Versionmariadb
Server OS (if known)fedora/linux
Webserver software & version (if known)nginx
PHP Versionphp7.2

Relationships

related to 14208 new Feature requests A way to update "parent template" 

Activities

DenisChenu

DenisChenu

2018-11-13 23:40

developer  

limesurvey_survey_746393.lss (74,004 bytes)
DenisChenu

DenisChenu

2018-11-13 23:42

developer  

PHP notice.html (29,683 bytes)
DenisChenu

DenisChenu

2018-11-13 23:43

developer   ~49640

Last edited: 2018-11-13 23:43

View 2 revisions

I put the related since base code to update parent must be same

DenisChenu

DenisChenu

2018-11-14 08:28

developer   ~49645

OK, broke with lss from 2.73 and lesser : <template>default</template> …

DenisChenu

DenisChenu

2018-11-14 08:57

developer   ~49646

@LouisGac : i try to fix template name when import :
https://github.com/LimeSurvey/LimeSurvey/blob/8053d05756fed9b6c16641cb8d5f98ab55fc3724/application/helpers/admin/import_helper.php#L858

            if ($key == 'template') {
                $sTemplateName = (string)$value;
                /* Fix template if needed, see mantis 14250 */
                $value = Template::templateNameFilter($sTemplateName);
                if($value != $sTemplateName) {
                    $results['importwarnings'][] = sprintf(gT(&quot;Template are set to %s&quot;), $value);
                    $sTemplateName = $value;
                }
            }

but after i have this same notice

I don't undestand : if there are no survey template config for an existing template : we don't get the default one ?

Attach a 2.73 survey here



Modele_de_Quotas_Sans_URL_Fin_limesurvey_survey_627969.lss (29,140 bytes)
DenisChenu

DenisChenu

2018-11-21 14:39

developer   ~49714

Argl …
Quick fix by

                if(!isset($this->getParentConfiguration()->$name)) {
                    // recursive but no parent, return null. Mantis issue 14250 (quick fix)
                    return null;
                }
                $sAttribute = $this->getParentConfiguration()->$name;

receive Undefined property: TemplateConfiguration::$cssframework_css



PHP notice-2.html (30,962 bytes)

Issue History

Date Modified Username Field Change
2018-11-13 23:40 DenisChenu New Issue
2018-11-13 23:40 DenisChenu File Added: limesurvey_survey_746393.lss
2018-11-13 23:42 DenisChenu File Added: PHP notice.html
2018-11-13 23:43 DenisChenu Relationship added related to 14208
2018-11-13 23:43 DenisChenu Note Added: 49640
2018-11-13 23:43 DenisChenu Note Edited: 49640 View Revisions
2018-11-14 08:28 DenisChenu Note Added: 49645
2018-11-14 08:50 DenisChenu Assigned To => LouisGac
2018-11-14 08:50 DenisChenu Status new => assigned
2018-11-14 08:57 DenisChenu File Added: Modele_de_Quotas_Sans_URL_Fin_limesurvey_survey_627969.lss
2018-11-14 08:57 DenisChenu Note Added: 49646
2018-11-21 14:39 DenisChenu File Added: PHP notice-2.html
2018-11-21 14:39 DenisChenu Note Added: 49714