View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
12694Bug reportsImport/Exportpublic2018-01-15 10:39
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version2.70.x 
Fixed in Version3.0.0-rc.x 
Summary12694: Import badly set survey show success even if error
Description

When importing a badly set survey via TSV : result show success with 0 question and group

Steps To Reproduce

Try to import included survey, see the error

Additional Information

Here language is empty : the survey can not be created (this is GREAT) but seems Survey::model()->insertNewSurvey is broken

TagsNo tags attached.
Attached Files
limesurvey_survey_958678.tsv (15,965 bytes)   
class	type/scale	name	relevance	text	help	language	validation	mandatory	other	default	same_default	allowed_filetypes	alphasort	answer_width	array_filter	array_filter_exclude	array_filter_style	assessment_value	category_separator	choice_title	code_filter	commented_checkbox	commented_checkbox_auto	cssclass	date_format	date_max	date_min	display_columns	display_rows	display_type	dropdown_dates	dropdown_dates_minute_step	dropdown_dates_month_style	dropdown_prefix	dropdown_prepostfix	dropdown_separators	dropdown_size	dualscale_headerA	dualscale_headerB	em_validation_q	em_validation_q_tip	em_validation_sq	em_validation_sq_tip	equals_num_value	equation	exclude_all_others	exclude_all_others_auto	hidden	hide_tip	input_boxes	label_input_columns	location_city	location_country	location_defaultcoordinates	location_mapheight	location_mapservice	location_mapwidth	location_mapzoom	location_nodefaultfromip	location_postal	location_state	max_answers	max_filesize	max_num_of_files	max_num_value	max_num_value_n	max_subquestions	maximum_chars	min_answers	min_num_of_files	min_num_value	min_num_value_n	multiflexible_checkbox	multiflexible_max	multiflexible_min	multiflexible_step	num_value_int_only	numbers_only	other_comment_mandatory	other_numbers_only	other_replace_text	page_break	parent_order	prefix	printable_help	public_statistics	random_group	random_order	rank_title	repeat_headings	reverse	samechoiceheight	samelistheight	scale_export	show_comment	show_grand_total	show_title	show_totals	showpopups	slider_accuracy	slider_custom_handle	slider_default	slider_handle	slider_layout	slider_max	slider_middlestart	slider_min	slider_orientation	slider_rating	slider_reset	slider_separator	slider_showminmax	statQuestionGraphColors	statQuestionGraphShow	statQuestionGraphSource	statistics_graphtype	statistics_showgraph	statistics_showmap	suffix	text_input_columns	text_input_width	time_limit	time_limit_action	time_limit_countdown_message	time_limit_disable_next	time_limit_disable_prev	time_limit_message	time_limit_message_delay	time_limit_message_style	time_limit_timer_style	time_limit_warning	time_limit_warning_2	time_limit_warning_2_display_time	time_limit_warning_2_message	time_limit_warning_2_style	time_limit_warning_display_time	time_limit_warning_message	time_limit_warning_style	use_dropdown	value_range_allows_missing
S		sid		958678																																																																																																																																								
S		owner_id		1																																																																																																																																								
S		admin		Sondages en ligne																																																																																																																																								
S		active		Y																																																																																																																																								
S		adminemail		contact@sondages.pro																																																																																																																																								
S		anonymized		N																																																																																																																																								
S		format		G																																																																																																																																								
S		savetimings		N																																																																																																																																								
S		template		default																																																																																																																																								
S		language																																																																																																																																										
S		datestamp		N																																																																																																																																								
S		usecookie		N																																																																																																																																								
S		allowregister		N																																																																																																																																								
S		allowsave		Y																																																																																																																																								
S		autonumber_start		0																																																																																																																																								
S		autoredirect		N																																																																																																																																								
S		allowprev		N																																																																																																																																								
S		printanswers		N																																																																																																																																								
S		ipaddr		N																																																																																																																																								
S		refurl		N																																																																																																																																								
S		datecreated		2017-08-23																																																																																																																																								
S		publicstatistics		N																																																																																																																																								
S		publicgraphs		N																																																																																																																																								
S		listpublic		N																																																																																																																																								
S		htmlemail		N																																																																																																																																								
S		sendconfirmation		Y																																																																																																																																								
S		tokenanswerspersistence		N																																																																																																																																								
S		assessments		N																																																																																																																																								
S		usecaptcha		N																																																																																																																																								
S		usetokens		N																																																																																																																																								
S		bounce_email		noreply@sondages.pro																																																																																																																																								
S		tokenlength		15																																																																																																																																								
S		showxquestions		Y																																																																																																																																								
S		showgroupinfo		B																																																																																																																																								
S		shownoanswer		Y																																																																																																																																								
S		showqnumcode		X																																																																																																																																								
S		bounceprocessing		N																																																																																																																																								
S		showwelcome		Y																																																																																																																																								
S		showprogress		Y																																																																																																																																								
S		navigationdelay		0																																																																																																																																								
S		nokeyboard		N																																																																																																																																								
S		alloweditaftercompletion		N																																																																																																																																								
S		googleanalyticsstyle		0																																																																																																																																								
S		questionindex		0																																																																																																																																								
SL		surveyls_title		Broken ranking		en																																																																																																																																						
SL		surveyls_email_invite_subj		Invitation to participate in a survey		en																																																																																																																																						
SL		surveyls_email_invite		"Dear {FIRSTNAME},  you have been invited to participate in a survey.  The survey is titled: ""{SURVEYNAME}""  ""{SURVEYDESCRIPTION}""  To participate, please click on the link below.  Sincerely,  {ADMINNAME} ({ADMINEMAIL})  ---------------------------------------------- Click here to do the survey: {SURVEYURL}  If you do not want to participate in this survey and don't want to receive any more invitations please click the following link: {OPTOUTURL}  If you are blacklisted but want to participate in this survey and want to receive invitations please click the following link: {OPTINURL}"		en																																																																																																																																						
SL		surveyls_email_remind_subj		Reminder to participate in a survey		en																																																																																																																																						
SL		surveyls_email_remind		"Dear {FIRSTNAME},  Recently we invited you to participate in a survey.  We note that you have not yet completed the survey, and wish to remind you that the survey is still available should you wish to take part.  The survey is titled: ""{SURVEYNAME}""  ""{SURVEYDESCRIPTION}""  To participate, please click on the link below.  Sincerely,  {ADMINNAME} ({ADMINEMAIL})  ---------------------------------------------- Click here to do the survey: {SURVEYURL}  If you do not want to participate in this survey and don't want to receive any more invitations please click the following link: {OPTOUTURL}"		en																																																																																																																																						
SL		surveyls_email_register_subj		Survey registration confirmation		en																																																																																																																																						
SL		surveyls_email_register		Dear {FIRSTNAME},  You, or someone using your email address, have registered to participate in an online survey titled {SURVEYNAME}.  To complete this survey, click on the following URL:  {SURVEYURL}  If you have any questions about this survey, or if you did not register to participate and believe this email is in error, please contact {ADMINNAME} at {ADMINEMAIL}.		en																																																																																																																																						
SL		surveyls_email_confirm_subj		Confirmation of your participation in our survey		en																																																																																																																																						
SL		surveyls_email_confirm		Dear {FIRSTNAME},  this email is to confirm that you have completed the survey titled {SURVEYNAME} and your response has been saved. Thank you for participating.  If you have any further questions about this email, please contact {ADMINNAME} on {ADMINEMAIL}.  Sincerely,  {ADMINNAME}		en																																																																																																																																						
SL		surveyls_dateformat		5		en																																																																																																																																						
SL		email_admin_notification_subj		Response submission for survey {SURVEYNAME}		en																																																																																																																																						
SL		email_admin_notification		Hello,  A new response was submitted for your survey '{SURVEYNAME}'.  Click the following link to reload the survey: {RELOADURL}  Click the following link to see the individual response: {VIEWRESPONSEURL}  Click the following link to edit the individual response: {EDITRESPONSEURL}  View statistics by clicking here: {STATISTICSURL}		en																																																																																																																																						
SL		email_admin_responses_subj		Response submission for survey {SURVEYNAME} with results		en																																																																																																																																						
SL		email_admin_responses		Hello,  A new response was submitted for your survey '{SURVEYNAME}'.  Click the following link to reload the survey: {RELOADURL}  Click the following link to see the individual response: {VIEWRESPONSEURL}  Click the following link to edit the individual response: {EDITRESPONSEURL}  View statistics by clicking here: {STATISTICSURL}   The following answers were given by the participant: {ANSWERTABLE}		en																																																																																																																																						
SL		surveyls_numberformat		1		en																																																																																																																																						
G	G0	Group	1			en																																																																																																																																						
Q	R	RANK	1	2 rank first, adding 1 after		en			N		1																																																								4																									1	1						1																		1																							
SQ	0	1	1	Rank 1		en																																																																																																																																						
SQ	0	2	1	Rank 2		en																																																																																																																																						
SQ	0	3	1	Rank 3		en																																																																																																																																						
SQ	0	4	1	Rank 4		en																																																																																																																																						
A	0	A1		A1		en																																																																																																																																						
A	0	A2		A2		en																																																																																																																																						
A	0	A3		Broken A3		en																																																																																																																																						
limesurvey_survey_958678.tsv (15,965 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)170921
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionmysql
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2017-10-31 15:51

developer   ~44913

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

c_schmitz

c_schmitz

2018-01-15 10:39

administrator   ~45756

Version 3.0.3 released.

Related Changesets

LimeSurvey: develop 819f0992

2017-10-31 15:51:40

DenisChenu

Details Diff
Fixed issue 12694: Import badly set survey show success even if error
Dev: review \Survey::model()->insertNewSurvey($data) to return \Survey (and then get the errors)
Affected Issues
12694
mod - application/controllers/admin/surveyadmin.php Diff File
mod - application/helpers/admin/import_helper.php Diff File
mod - application/helpers/remotecontrol/remotecontrol_handle.php Diff File
mod - application/models/Survey.php Diff File
mod - application/models/SurveyLanguageSetting.php Diff File

Issue History

Date Modified Username Field Change
2017-09-21 17:34 DenisChenu New Issue
2017-09-21 17:34 DenisChenu Status new => assigned
2017-09-21 17:34 DenisChenu Assigned To => DenisChenu
2017-09-21 17:34 DenisChenu File Added: limesurvey_survey_958678.tsv
2017-10-31 15:51 DenisChenu Changeset attached => LimeSurvey develop 819f0992
2017-10-31 15:51 DenisChenu Note Added: 44913
2017-10-31 15:51 DenisChenu Resolution open => fixed
2017-10-31 15:52 DenisChenu Status assigned => resolved
2017-10-31 15:52 DenisChenu Fixed in Version => 3.0.0-rc.x
2018-01-15 10:39 c_schmitz Note Added: 45756
2018-01-15 10:39 c_schmitz Status resolved => closed