View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
10760Bug reportsImport/Exportpublic2016-04-01 11:36
ReporterMoradzadeh Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.06+ 
Target Version2.50.xFixed in Version2.50.x 
Summary10760: TSV export : Conditions truncated at "<="
Description

So, I have a question that should display when a rating on the prior one is three or less.
The condition equation is:
((( ! is_empty(satis1.NAOK) && (satis1.NAOK <= "3"))))
The problem is, when I export this to a tsv, the relevance condition appears as
((( ! is_empty(satis1.NAOK) && (satis1.NAOK

And of course, that does not work since the right hand of the expression is missing.

This is the latest version of LS (2.50)

Additional Information

It works fine with other expressions, such as == and <.

TagsNo tags attached.
Attached Files
limesurvey_survey_575554.txt (14,595 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	date_format	date_max	date_min	display_columns	display_rows	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	exclude_all_others	exclude_all_others_auto	hidden	hide_tip	input_boxes	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	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_default	slider_layout	slider_max	slider_middlestart	slider_min	slider_rating	slider_reset	slider_separator	slider_showminmax	statistics_graphtype	statistics_showgraph	statistics_showmap	suffix	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	thousands_separator	use_dropdown
S		sid		575554																																																																																																																												
S		owner_id		1																																																																																																																												
S		admin		Administrator																																																																																																																												
S		active		N																																																																																																																												
S		adminemail		mdm@yachtpc.com																																																																																																																												
S		anonymized		N																																																																																																																												
S		format		G																																																																																																																												
S		savetimings		N																																																																																																																												
S		template		sasdefaultcopy																																																																																																																												
S		language		en																																																																																																																												
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		2016-03-14																																																																																																																												
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		mdm@yachtpc.com																																																																																																																												
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		questionindex		0																																																																																																																												
S		navigationdelay		0																																																																																																																												
S		nokeyboard		N																																																																																																																												
S		alloweditaftercompletion		N																																																																																																																												
SL		surveyls_title		Bug Demo Survey		en																																																																																																																										
SL		surveyls_welcometext		Welcome to the bug demo survey.  10760 is the bug number.		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		9		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		0		en																																																																																																																										
G	G0	Bug group[	1			en																																																																																																																										
Q	5	satis1	1	Pick a number between 1 and 5.  3 or below should make another question pop up.		en			N		1																																																																																															1																						
Q	T	fix1	((( ! is_empty(satis1.NAOK) && (satis1.NAOK	This question should only be visible if you picked 3 or below for the prior one.		en			N		1																																																																																															1					1																	
Q	T	fix2	((( ! is_empty(satis1.NAOK) && (satis1.NAOK	This question uses relevance rather than conditions and also should only be visible if the first is <= 3		en			N		1																																																																																															1					1																	
limesurvey_survey_575554.txt (14,595 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)160315
I will donate to the project if issue is resolved
Browsernot relevant
Database type & versionnot relevant
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

2016-03-14 17:15

developer   ~36482

Move to bug, and please : provide a little lss file (2 question, one with condition)

Moradzadeh

Moradzadeh

2016-03-14 20:05

reporter   ~36485

lss file provided along with sample of the failed .txt tsv file

DenisChenu

DenisChenu

2016-03-15 08:20

developer   ~36486

Confirmed in 2.06lts and lmast 2.50 GIT

DenisChenu

DenisChenu

2016-03-21 11:05

developer   ~36644

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=18102

c_schmitz

c_schmitz

2016-04-01 11:36

administrator   ~36895

Version 2.50+ Build 160401 released

Related Changesets

LimeSurvey: master 4eee5627

2016-03-21 10:05:00

DenisChenu

Details Diff
Fixed issue 10760: TSV export : Conditions truncated at "<="
Dev: relevance don't have HTML, then can be clean up for span and a from GetPrettyPrintString only
Dev: Alternative : option in GetPrettyPrintString ?
Affected Issues
10760
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2016-03-14 15:30 Moradzadeh New Issue
2016-03-14 17:15 DenisChenu Note Added: 36482
2016-03-14 17:15 DenisChenu Project Feature requests => Bug reports
2016-03-14 17:15 DenisChenu Summary Conditions export truncated at "<=" => TSC export : Conditions truncated at "<="
2016-03-14 20:03 Moradzadeh File Added: limesurvey_survey_575554.lss
2016-03-14 20:04 Moradzadeh File Added: limesurvey_survey_575554.txt
2016-03-14 20:05 Moradzadeh Note Added: 36485
2016-03-15 08:05 DenisChenu Summary TSC export : Conditions truncated at "<=" => TSV export : Conditions truncated at "<="
2016-03-15 08:13 DenisChenu Assigned To => DenisChenu
2016-03-15 08:13 DenisChenu Status new => assigned
2016-03-15 08:20 DenisChenu LimeSurvey build number OR git commit ID => 160315
2016-03-15 08:20 DenisChenu Browser => not relevant
2016-03-15 08:20 DenisChenu Database & DB-Version => not relevant
2016-03-15 08:20 DenisChenu Operating System (Server) => not relevant
2016-03-15 08:20 DenisChenu Webserver software & version => not relevant
2016-03-15 08:20 DenisChenu PHP Version => not relevant
2016-03-15 08:20 DenisChenu Note Added: 36486
2016-03-15 08:20 DenisChenu Product Version => 2.06+
2016-03-15 08:20 DenisChenu Target Version => 2.5
2016-03-15 08:20 DenisChenu Priority none => normal
2016-03-15 08:20 DenisChenu Severity feature => minor
2016-03-15 08:20 DenisChenu Reproducibility have not tried => always
2016-03-21 11:05 DenisChenu Changeset attached => LimeSurvey master 4eee5627
2016-03-21 11:05 DenisChenu Note Added: 36644
2016-03-21 11:05 DenisChenu Resolution open => fixed
2016-03-21 14:16 DenisChenu Status assigned => resolved
2016-03-21 14:16 DenisChenu Fixed in Version => 2.5
2016-04-01 11:36 c_schmitz Note Added: 36895
2016-04-01 11:36 c_schmitz Status resolved => closed