View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18817 | Bug reports | Survey editing | public | 2023-05-15 19:21 | 2023-10-10 04:15 |
Reporter | holch | Assigned To | kfoster | ||
Priority | normal | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 5.6.x | ||||
Summary | 18817: Editing a question deletes default answers | ||||
Description | For a multiple text type question "default answers" set in "edit default answers" are deleted, whenever you edit the question again. Once you go back the default answers are not there anymore and you have to set them again. If you make other changes to the question, the default answers disappear again. Only solution: Default questions need to be set last, without any editing after that point, or they get lost again. Attached the survey where the problem was discovered. This is using Token Attributes, but it happens with default answers as plain text as well. | ||||
Steps To Reproduce | Steps to reproduce
Expected resultDefault answers stay untouched if you edit the question text Actual resultWhenever you edit the question, the default answers disappear | ||||
Tags | No tags attached. | ||||
Attached Files | default-answers-via-attributes.lss (26,563 bytes)
<?xml version="1.0" encoding="UTF-8"?> <document> <LimeSurveyDocType>Survey</LimeSurveyDocType> <DBVersion>496</DBVersion> <languages> <language>es</language> </languages> <defaultvalues> <fields> <fieldname>dvid</fieldname> <fieldname>qid</fieldname> <fieldname>scale_id</fieldname> <fieldname>sqid</fieldname> <fieldname>specialtype</fieldname> </fields> <rows> <row> <dvid><![CDATA[124]]></dvid> <qid><![CDATA[8365]]></qid> <scale_id><![CDATA[0]]></scale_id> <sqid><![CDATA[8367]]></sqid> <specialtype/> </row> <row> <dvid><![CDATA[125]]></dvid> <qid><![CDATA[8365]]></qid> <scale_id><![CDATA[0]]></scale_id> <sqid><![CDATA[8366]]></sqid> <specialtype/> </row> <row> <dvid><![CDATA[126]]></dvid> <qid><![CDATA[8365]]></qid> <scale_id><![CDATA[0]]></scale_id> <sqid><![CDATA[8376]]></sqid> <specialtype/> </row> <row> <dvid><![CDATA[127]]></dvid> <qid><![CDATA[8365]]></qid> <scale_id><![CDATA[0]]></scale_id> <sqid><![CDATA[8377]]></sqid> <specialtype/> </row> <row> <dvid><![CDATA[128]]></dvid> <qid><![CDATA[8365]]></qid> <scale_id><![CDATA[0]]></scale_id> <sqid><![CDATA[8378]]></sqid> <specialtype/> </row> <row> <dvid><![CDATA[129]]></dvid> <qid><![CDATA[8365]]></qid> <scale_id><![CDATA[0]]></scale_id> <sqid><![CDATA[8379]]></sqid> <specialtype/> </row> <row> <dvid><![CDATA[130]]></dvid> <qid><![CDATA[8365]]></qid> <scale_id><![CDATA[0]]></scale_id> <sqid><![CDATA[8382]]></sqid> <specialtype/> </row> <row> <dvid><![CDATA[131]]></dvid> <qid><![CDATA[8365]]></qid> <scale_id><![CDATA[0]]></scale_id> <sqid><![CDATA[8383]]></sqid> <specialtype/> </row> </rows> </defaultvalues> <defaultvalue_l10ns> <fields> <fieldname>id</fieldname> <fieldname>dvid</fieldname> <fieldname>language</fieldname> <fieldname>defaultvalue</fieldname> </fields> <rows> <row> <id><![CDATA[124]]></id> <dvid><![CDATA[124]]></dvid> <language><![CDATA[es]]></language> <defaultvalue><![CDATA[{TOKEN:attribute_1}]]></defaultvalue> </row> <row> <id><![CDATA[125]]></id> <dvid><![CDATA[125]]></dvid> <language><![CDATA[es]]></language> <defaultvalue><![CDATA[{TOKEN:attribute_2}]]></defaultvalue> </row> <row> <id><![CDATA[126]]></id> <dvid><![CDATA[126]]></dvid> <language><![CDATA[es]]></language> <defaultvalue><![CDATA[{TOKEN:ATTRIBUTE_1}]]></defaultvalue> </row> <row> <id><![CDATA[127]]></id> <dvid><![CDATA[127]]></dvid> <language><![CDATA[es]]></language> <defaultvalue><![CDATA[{TOKEN:ATTRIBUTE_2}]]></defaultvalue> </row> <row> <id><![CDATA[128]]></id> <dvid><![CDATA[128]]></dvid> <language><![CDATA[es]]></language> <defaultvalue><![CDATA[{TOKEN:ATTRIBUTE_1}]]></defaultvalue> </row> <row> <id><![CDATA[129]]></id> <dvid><![CDATA[129]]></dvid> <language><![CDATA[es]]></language> <defaultvalue><![CDATA[{TOKEN:ATTRIBUTE_2}]]></defaultvalue> </row> <row> <id><![CDATA[130]]></id> <dvid><![CDATA[130]]></dvid> <language><![CDATA[es]]></language> <defaultvalue><![CDATA[{TOKEN:ATTRIBUTE_1}]]></defaultvalue> </row> <row> <id><![CDATA[131]]></id> <dvid><![CDATA[131]]></dvid> <language><![CDATA[es]]></language> <defaultvalue><![CDATA[{TOKEN:ATTRIBUTE_2}]]></defaultvalue> </row> </rows> </defaultvalue_l10ns> <groups> <fields> <fieldname>gid</fieldname> <fieldname>sid</fieldname> <fieldname>group_order</fieldname> <fieldname>randomization_group</fieldname> <fieldname>grelevance</fieldname> </fields> <rows> <row> <gid><![CDATA[481]]></gid> <sid><![CDATA[898868]]></sid> <group_order><![CDATA[1]]></group_order> <randomization_group/> <grelevance/> </row> </rows> </groups> <group_l10ns> <fields> <fieldname>id</fieldname> <fieldname>gid</fieldname> <fieldname>group_name</fieldname> <fieldname>description</fieldname> <fieldname>language</fieldname> <fieldname>sid</fieldname> <fieldname>group_order</fieldname> <fieldname>randomization_group</fieldname> <fieldname>grelevance</fieldname> </fields> <rows> <row> <id><![CDATA[502]]></id> <gid><![CDATA[481]]></gid> <group_name><![CDATA[A]]></group_name> <description/> <language><![CDATA[es]]></language> <sid><![CDATA[898868]]></sid> <group_order><![CDATA[1]]></group_order> <randomization_group/> <grelevance/> </row> </rows> </group_l10ns> <questions> <fields> <fieldname>qid</fieldname> <fieldname>parent_qid</fieldname> <fieldname>sid</fieldname> <fieldname>gid</fieldname> <fieldname>type</fieldname> <fieldname>title</fieldname> <fieldname>preg</fieldname> <fieldname>other</fieldname> <fieldname>mandatory</fieldname> <fieldname>encrypted</fieldname> <fieldname>question_order</fieldname> <fieldname>scale_id</fieldname> <fieldname>same_default</fieldname> <fieldname>relevance</fieldname> <fieldname>modulename</fieldname> <fieldname>question_theme_name</fieldname> <fieldname>same_script</fieldname> </fields> <rows> <row> <qid><![CDATA[8365]]></qid> <parent_qid><![CDATA[0]]></parent_qid> <sid><![CDATA[898868]]></sid> <gid><![CDATA[481]]></gid> <type><![CDATA[Q]]></type> <title><![CDATA[G01Q01]]></title> <preg/> <other><![CDATA[N]]></other> <mandatory><![CDATA[N]]></mandatory> <encrypted><![CDATA[N]]></encrypted> <question_order><![CDATA[1]]></question_order> <scale_id><![CDATA[0]]></scale_id> <same_default><![CDATA[0]]></same_default> <relevance><![CDATA[1]]></relevance> <modulename/> <question_theme_name><![CDATA[multipleshorttext]]></question_theme_name> <same_script><![CDATA[0]]></same_script> </row> </rows> </questions> <subquestions> <fields> <fieldname>qid</fieldname> <fieldname>parent_qid</fieldname> <fieldname>sid</fieldname> <fieldname>gid</fieldname> <fieldname>type</fieldname> <fieldname>title</fieldname> <fieldname>preg</fieldname> <fieldname>other</fieldname> <fieldname>mandatory</fieldname> <fieldname>encrypted</fieldname> <fieldname>question_order</fieldname> <fieldname>scale_id</fieldname> <fieldname>same_default</fieldname> <fieldname>relevance</fieldname> <fieldname>modulename</fieldname> <fieldname>question_theme_name</fieldname> <fieldname>same_script</fieldname> </fields> <rows> <row> <qid><![CDATA[8382]]></qid> <parent_qid><![CDATA[8365]]></parent_qid> <sid><![CDATA[898868]]></sid> <gid><![CDATA[481]]></gid> <type><![CDATA[T]]></type> <title><![CDATA[SQ001]]></title> <other><![CDATA[N]]></other> <encrypted><![CDATA[N]]></encrypted> <question_order><![CDATA[0]]></question_order> <scale_id><![CDATA[0]]></scale_id> <same_default><![CDATA[0]]></same_default> <relevance><![CDATA[1]]></relevance> <question_theme_name><![CDATA[longfreetext]]></question_theme_name> <same_script><![CDATA[0]]></same_script> </row> <row> <qid><![CDATA[8383]]></qid> <parent_qid><![CDATA[8365]]></parent_qid> <sid><![CDATA[898868]]></sid> <gid><![CDATA[481]]></gid> <type><![CDATA[T]]></type> <title><![CDATA[SQ002]]></title> <other><![CDATA[N]]></other> <encrypted><![CDATA[N]]></encrypted> <question_order><![CDATA[1]]></question_order> <scale_id><![CDATA[0]]></scale_id> <same_default><![CDATA[0]]></same_default> <relevance><![CDATA[1]]></relevance> <question_theme_name><![CDATA[longfreetext]]></question_theme_name> <same_script><![CDATA[0]]></same_script> </row> </rows> </subquestions> <question_l10ns> <fields> <fieldname>id</fieldname> <fieldname>qid</fieldname> <fieldname>question</fieldname> <fieldname>help</fieldname> <fieldname>script</fieldname> <fieldname>language</fieldname> </fields> <rows> <row> <id><![CDATA[9231]]></id> <qid><![CDATA[8365]]></qid> <question><![CDATA[Texto Multiple Token-Attribute 1: {TOKEN:ATTRIBUTE_1} Token-Attribute 2: {TOKEN:ATTRIBUTE_2} Test 2]]></question> <help/> <script/> <language><![CDATA[es]]></language> </row> <row> <id><![CDATA[9248]]></id> <qid><![CDATA[8382]]></qid> <question><![CDATA[A]]></question> <language><![CDATA[es]]></language> </row> <row> <id><![CDATA[9249]]></id> <qid><![CDATA[8383]]></qid> <question><![CDATA[B]]></question> <language><![CDATA[es]]></language> </row> </rows> </question_l10ns> <question_attributes> <fields> <fieldname>qid</fieldname> <fieldname>attribute</fieldname> <fieldname>value</fieldname> <fieldname>language</fieldname> </fields> <rows> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[array_filter]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[array_filter_exclude]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[array_filter_style]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[clear_default]]></attribute> <value><![CDATA[N]]></value> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[cssclass]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[display_rows]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[em_validation_q]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[em_validation_q_tip]]></attribute> <value/> <language><![CDATA[es]]></language> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[em_validation_sq]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[em_validation_sq_tip]]></attribute> <value/> <language><![CDATA[es]]></language> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[exclude_all_others]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[hidden]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[hide_tip]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[input_size]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[label_input_columns]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[max_answers]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[maximum_chars]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[min_answers]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[numbers_only]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[page_break]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[prefix]]></attribute> <value/> <language><![CDATA[es]]></language> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[random_group]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[random_order]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[save_as_default]]></attribute> <value><![CDATA[N]]></value> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[statistics_graphtype]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[statistics_showgraph]]></attribute> <value><![CDATA[1]]></value> <language/> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[suffix]]></attribute> <value/> <language><![CDATA[es]]></language> </row> <row> <qid><![CDATA[8365]]></qid> <attribute><![CDATA[text_input_columns]]></attribute> <value/> <language/> </row> </rows> </question_attributes> <surveys> <fields> <fieldname>sid</fieldname> <fieldname>gsid</fieldname> <fieldname>admin</fieldname> <fieldname>expires</fieldname> <fieldname>startdate</fieldname> <fieldname>adminemail</fieldname> <fieldname>anonymized</fieldname> <fieldname>faxto</fieldname> <fieldname>format</fieldname> <fieldname>savetimings</fieldname> <fieldname>template</fieldname> <fieldname>language</fieldname> <fieldname>additional_languages</fieldname> <fieldname>datestamp</fieldname> <fieldname>usecookie</fieldname> <fieldname>allowregister</fieldname> <fieldname>allowsave</fieldname> <fieldname>autonumber_start</fieldname> <fieldname>autoredirect</fieldname> <fieldname>allowprev</fieldname> <fieldname>printanswers</fieldname> <fieldname>ipaddr</fieldname> <fieldname>ipanonymize</fieldname> <fieldname>refurl</fieldname> <fieldname>showsurveypolicynotice</fieldname> <fieldname>publicstatistics</fieldname> <fieldname>publicgraphs</fieldname> <fieldname>listpublic</fieldname> <fieldname>htmlemail</fieldname> <fieldname>sendconfirmation</fieldname> <fieldname>tokenanswerspersistence</fieldname> <fieldname>assessments</fieldname> <fieldname>usecaptcha</fieldname> <fieldname>usetokens</fieldname> <fieldname>bounce_email</fieldname> <fieldname>attributedescriptions</fieldname> <fieldname>emailresponseto</fieldname> <fieldname>emailnotificationto</fieldname> <fieldname>tokenlength</fieldname> <fieldname>showxquestions</fieldname> <fieldname>showgroupinfo</fieldname> <fieldname>shownoanswer</fieldname> <fieldname>showqnumcode</fieldname> <fieldname>bouncetime</fieldname> <fieldname>bounceprocessing</fieldname> <fieldname>bounceaccounttype</fieldname> <fieldname>bounceaccounthost</fieldname> <fieldname>bounceaccountpass</fieldname> <fieldname>bounceaccountencryption</fieldname> <fieldname>bounceaccountuser</fieldname> <fieldname>showwelcome</fieldname> <fieldname>showprogress</fieldname> <fieldname>questionindex</fieldname> <fieldname>navigationdelay</fieldname> <fieldname>nokeyboard</fieldname> <fieldname>alloweditaftercompletion</fieldname> <fieldname>googleanalyticsstyle</fieldname> <fieldname>googleanalyticsapikey</fieldname> <fieldname>tokenencryptionoptions</fieldname> </fields> <rows> <row> <sid><![CDATA[898868]]></sid> <gsid><![CDATA[1]]></gsid> <admin><![CDATA[inherit]]></admin> <adminemail><![CDATA[inherit]]></adminemail> <anonymized><![CDATA[N]]></anonymized> <format><![CDATA[I]]></format> <savetimings><![CDATA[I]]></savetimings> <template><![CDATA[inherit]]></template> <language><![CDATA[es]]></language> <additional_languages/> <datestamp><![CDATA[I]]></datestamp> <usecookie><![CDATA[I]]></usecookie> <allowregister><![CDATA[I]]></allowregister> <allowsave><![CDATA[I]]></allowsave> <autonumber_start><![CDATA[0]]></autonumber_start> <autoredirect><![CDATA[I]]></autoredirect> <allowprev><![CDATA[I]]></allowprev> <printanswers><![CDATA[I]]></printanswers> <ipaddr><![CDATA[I]]></ipaddr> <ipanonymize><![CDATA[I]]></ipanonymize> <refurl><![CDATA[I]]></refurl> <showsurveypolicynotice><![CDATA[0]]></showsurveypolicynotice> <publicstatistics><![CDATA[I]]></publicstatistics> <publicgraphs><![CDATA[I]]></publicgraphs> <listpublic><![CDATA[I]]></listpublic> <htmlemail><![CDATA[I]]></htmlemail> <sendconfirmation><![CDATA[I]]></sendconfirmation> <tokenanswerspersistence><![CDATA[I]]></tokenanswerspersistence> <assessments><![CDATA[I]]></assessments> <usecaptcha><![CDATA[E]]></usecaptcha> <usetokens><![CDATA[N]]></usetokens> <bounce_email><![CDATA[inherit]]></bounce_email> <attributedescriptions><![CDATA[{"firstname":{"encrypted":"N"},"lastname":{"encrypted":"N"},"email":{"encrypted":"N"},"attribute_1":{"description":"A","mandatory":"N","encrypted":"N","show_register":"N","cpdbmap":""},"attribute_2":{"description":"B","mandatory":"N","encrypted":"N","show_register":"N","cpdbmap":""}}]]></attributedescriptions> <emailresponseto><![CDATA[inherit]]></emailresponseto> <emailnotificationto><![CDATA[inherit]]></emailnotificationto> <tokenlength><![CDATA[-1]]></tokenlength> <showxquestions><![CDATA[I]]></showxquestions> <showgroupinfo><![CDATA[I]]></showgroupinfo> <shownoanswer><![CDATA[I]]></shownoanswer> <showqnumcode><![CDATA[I]]></showqnumcode> <bounceprocessing><![CDATA[N]]></bounceprocessing> <showwelcome><![CDATA[I]]></showwelcome> <showprogress><![CDATA[I]]></showprogress> <questionindex><![CDATA[-1]]></questionindex> <navigationdelay><![CDATA[-1]]></navigationdelay> <nokeyboard><![CDATA[I]]></nokeyboard> <alloweditaftercompletion><![CDATA[I]]></alloweditaftercompletion> <tokenencryptionoptions><![CDATA[{"enabled":"Y","columns":{"firstname":"N","lastname":"N","email":"N"}}]]></tokenencryptionoptions> </row> </rows> </surveys> <surveys_languagesettings> <fields> <fieldname>surveyls_survey_id</fieldname> <fieldname>surveyls_language</fieldname> <fieldname>surveyls_title</fieldname> <fieldname>surveyls_description</fieldname> <fieldname>surveyls_welcometext</fieldname> <fieldname>surveyls_endtext</fieldname> <fieldname>surveyls_policy_notice</fieldname> <fieldname>surveyls_policy_error</fieldname> <fieldname>surveyls_policy_notice_label</fieldname> <fieldname>surveyls_url</fieldname> <fieldname>surveyls_urldescription</fieldname> <fieldname>surveyls_email_invite_subj</fieldname> <fieldname>surveyls_email_invite</fieldname> <fieldname>surveyls_email_remind_subj</fieldname> <fieldname>surveyls_email_remind</fieldname> <fieldname>surveyls_email_register_subj</fieldname> <fieldname>surveyls_email_register</fieldname> <fieldname>surveyls_email_confirm_subj</fieldname> <fieldname>surveyls_email_confirm</fieldname> <fieldname>surveyls_dateformat</fieldname> <fieldname>surveyls_attributecaptions</fieldname> <fieldname>email_admin_notification_subj</fieldname> <fieldname>email_admin_notification</fieldname> <fieldname>email_admin_responses_subj</fieldname> <fieldname>email_admin_responses</fieldname> <fieldname>surveyls_numberformat</fieldname> <fieldname>attachments</fieldname> <fieldname>surveyls_alias</fieldname> </fields> <rows> <row> <surveyls_survey_id><![CDATA[898868]]></surveyls_survey_id> <surveyls_language><![CDATA[es]]></surveyls_language> <surveyls_title><![CDATA[MultipleTexto]]></surveyls_title> <surveyls_description/> <surveyls_welcometext/> <surveyls_endtext/> <surveyls_policy_notice/> <surveyls_policy_notice_label/> <surveyls_url/> <surveyls_urldescription/> <surveyls_email_invite_subj><![CDATA[Invitación para participar en una encuesta]]></surveyls_email_invite_subj> <surveyls_email_invite><![CDATA[Estimado/a {FIRSTNAME} {LASTNAME}:<br /> <br /> Ha sido invitado a participar en la siguiente encuesta:<br /> <br /> «{SURVEYNAME}»<br /> <br /> «{SURVEYDESCRIPTION}»<br /> <br /> Para hacerlo, por favor pulse en el siguiente enlace:<br /> <br /> {SURVEYURL}<br /> <br /> ¡Muchas gracias por su interés y colaboración!<br /> <br /> Atentamente,<br /> <br /> {ADMINNAME} ({ADMINEMAIL})<br /> <br /> Si no desea participar en esta encuesta y tampoco desea recibir más invitaciones a la misma, por favor, pulse en el siguiente enlace:<br /> {OPTOUTURL}<br /> <br /> Si usted se encuentra en la lista negra de usuarios, pero quiere participar en esta encuesta y quiere recibir invitaciones, por favor haga click en el siguiente enlace:<br /> {OPTINURL}]]></surveyls_email_invite> <surveyls_email_remind_subj><![CDATA[Recordatorio para participar en una encuesta]]></surveyls_email_remind_subj> <surveyls_email_remind><![CDATA[Estimado/a {FIRSTNAME} {LASTNAME}:<br /> <br /> Recientemente se le invitó a participar en la encuesta de título<br /> <br /> «{SURVEYNAME}»<br /> <br /> «{SURVEYDESCRIPTION}»<br /> <br /> Advertimos que aún no la ha completado, y de la forma más atenta queríamos recordarle que todavía se encuentra disponible si desea participar.<br /> <br /> Para hacerlo, por favor pulse en el siguiente enlace:<br /> <br /> {SURVEYURL}<br /> <br /> Nuevamente le agradecemos su interés y colaboración.<br /> Atentamente,<br /> <br /> {ADMINNAME} ({ADMINEMAIL})<br /> <br /> Si no desea participar en esta encuesta y tampoco desea recibir más invitaciones a la misma, por favor, pulse en el siguiente enlace:<br /> {OPTOUTURL}]]></surveyls_email_remind> <surveyls_email_register_subj><![CDATA[Confirmación de registro en la encuesta]]></surveyls_email_register_subj> <surveyls_email_register><![CDATA[Estimado/a {FIRSTNAME} {LASTNAME}:<br /> <br /> Usted, o alguien utilizando su dirección de correo electrónico, se ha registrado para participar en una encuesta en línea titulada <br /> <br /> «{SURVEYNAME}»<br /> <br /> «{SURVEYDESCRIPTION}»<br /> <br /> Para completarla, pulse en la siguiente dirección:<br /> <br /> {SURVEYURL}<br /> <br /> Si tiene cualquier duda con respecto a la encuesta, o si no se registró para participar y cree que este correo es un error, por favor, póngase en contacto con {ADMINNAME} en {ADMINEMAIL}.]]></surveyls_email_register> <surveyls_email_confirm_subj><![CDATA[Confirmación de su participación en nuestra encuesta]]></surveyls_email_confirm_subj> <surveyls_email_confirm><![CDATA[Estimado/a {FIRSTNAME} {LASTNAME}:<br /> <br /> Este correo es para confirmarle que ha completado la encuesta titulada "{SURVEYNAME}" y sus respuestas han quedado correctamente guardadas.<br /> <br /> ¡Muchas gracias por su participación!.<br /> <br /> Si tiene alguna duda o consulta adicional, por favor póngase en contacto con {ADMINNAME} en {ADMINEMAIL}.<br /> <br /> Reciba un cordial saludo,<br /> <br /> {ADMINNAME}]]></surveyls_email_confirm> <surveyls_dateformat><![CDATA[5]]></surveyls_dateformat> <surveyls_attributecaptions><![CDATA[{"attribute_1":"","attribute_2":""}]]></surveyls_attributecaptions> <email_admin_notification_subj><![CDATA[Envío de respuestas de la encuesta {SURVEYNAME}]]></email_admin_notification_subj> <email_admin_notification><![CDATA[Hola!<br /> <br /> Una nueva respuesta ha sido concluida en su encuesta '{SURVEYNAME}'.<br /> <br /> Pulse el siguiente enlace para ver la respuesta individual:<br /> {VIEWRESPONSEURL}<br /> <br /> Pulse el siguiente enlace para editar la respuesta individual:<br /> {EDITRESPONSEURL}<br /> <br /> Ver estadísticas pulsando el siguiente enlace:<br /> {STATISTICSURL}]]></email_admin_notification> <email_admin_responses_subj><![CDATA[Enviar los resultados de las respuestas en la encuesta {SURVEYNAME}]]></email_admin_responses_subj> <email_admin_responses><![CDATA[Hola:<br /> <br /> Una nueva respuesta ha sido concluida en su encuesta '{SURVEYNAME}'.<br /> <br /> Pulse el siguiente enlace para ver la respuesta individual:<br /> {VIEWRESPONSEURL}<br /> <br /> Pulse el siguiente enlace para editar la respuesta individual:<br /> {EDITRESPONSEURL}<br /> <br /> Ver estadísticas pulsando el siguiente enlace:<br /> {STATISTICSURL}<br /> <br /> <br /> Estas son las respuestas dadas por el/la encuestado/a:<br /> {ANSWERTABLE}]]></email_admin_responses> <surveyls_numberformat><![CDATA[1]]></surveyls_numberformat> </row> </rows> </surveys_languagesettings> <themes> <theme> <sid>898868</sid> <template_name>fruity</template_name> <config> <options>inherit</options> </config> </theme> </themes> <themes_inherited> <theme> <sid>898868</sid> <template_name>fruity</template_name> <config> <options> <ajaxmode>off</ajaxmode> <brandlogo>on</brandlogo> <brandlogofile>image::theme::files/logo.png</brandlogofile> <container>on</container> <backgroundimage>off</backgroundimage> <animatebody>off</animatebody> <bodyanimation>fadeInRight</bodyanimation> <bodyanimationduration>500</bodyanimationduration> <animatequestion>off</animatequestion> <questionanimation>flipInX</questionanimation> <questionanimationduration>500</questionanimationduration> <animatealert>off</animatealert> <alertanimation>shake</alertanimation> <alertanimationduration>500</alertanimationduration> <font>noto</font> <bodybackgroundcolor>#ffffff</bodybackgroundcolor> <fontcolor>#444444</fontcolor> <questionbackgroundcolor>#ffffff</questionbackgroundcolor> <questionborder>on</questionborder> <questioncontainershadow>on</questioncontainershadow> <checkicon>f00c</checkicon> <animatecheckbox>on</animatecheckbox> <checkboxanimation>rubberBand</checkboxanimation> <checkboxanimationduration>500</checkboxanimationduration> <animateradio>on</animateradio> <radioanimation>zoomIn</radioanimation> <radioanimationduration>500</radioanimationduration> <zebrastriping>off</zebrastriping> <stickymatrixheaders>off</stickymatrixheaders> <greyoutselected>off</greyoutselected> <hideprivacyinfo>off</hideprivacyinfo> <crosshover>off</crosshover> <showpopups>1</showpopups> <showclearall>off</showclearall> <questionhelptextposition>top</questionhelptextposition> <notables>1</notables> </options> </config> </theme> </themes_inherited> </document> | ||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | Version 5.6.20+230516 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Chrome | ||||
Database type & version | 5.5.5-10.1.48-MariaDB-0ubuntu0.18.04.1 | ||||
Server OS (if known) | Ubuntu | ||||
Webserver software & version (if known) | Apache | ||||
PHP Version | 7.4.33 | ||||
duplicate of | 18976 | closed | adamzammit | Saving a question with subquestions deletes default answers |
related to | 19160 | confirmed | kfoster | Unable to save subquestions |
I have confirmed that this is happening. |
|
https://github.com/LimeSurvey/LimeSurvey/commit/4420f6258d211b021b6b833200ba71f93fd962f3 ? |
|
@DenisChenu, thanks, this just needs to be ported to 5.x. In master the PR above fixed it. |
|
Yes Then assign Kevin |
|
Let me port it. |
|
Ported it to v5: https://github.com/LimeSurvey/LimeSurvey/pull/3457 |
|
Fixed in Release 5.6.40+231005 |
|
Fix committed to 5.x branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=35568 |
|
LimeSurvey: 5.x 0cea5e54 2023-10-04 13:15 Gabriel Jenik Committer: GitHub Details Diff |
Fixed issue 18817: Editing a question deletes default answers (#3457) Fix ported from issue 18976 - default answers should persist with subquestions Co-authored-by: Kevin Foster <kevin.foster.uk@gmail.com> |
Affected Issues 18817, 18976 |
|
mod - application/controllers/QuestionAdministrationController.php | Diff File | ||
mod - application/models/Question.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-05-15 19:21 | holch | New Issue | |
2023-05-15 19:21 | holch | File Added: default-answers-via-attributes.lss | |
2023-05-16 10:24 | ollehar | Priority | none => normal |
2023-05-16 14:15 | tibor.pacalat | Note Added: 75008 | |
2023-05-16 14:15 | tibor.pacalat | Bug heat | 0 => 2 |
2023-05-19 11:35 | tibor.pacalat | Assigned To | => tibor.pacalat |
2023-05-19 11:35 | tibor.pacalat | Status | new => confirmed |
2023-05-19 11:36 | tibor.pacalat | Assigned To | tibor.pacalat => |
2023-09-13 15:57 | gabrieljenik | Assigned To | => gabrieljenik |
2023-09-13 15:57 | gabrieljenik | Status | confirmed => assigned |
2023-09-13 16:27 | DenisChenu | Relationship added | duplicate of 18976 |
2023-09-13 16:27 | DenisChenu | Note Added: 77002 | |
2023-09-13 16:27 | DenisChenu | Bug heat | 2 => 4 |
2023-09-13 16:58 | tibor.pacalat | Note Added: 77011 | |
2023-09-13 16:59 | DenisChenu | Note Added: 77012 | |
2023-09-13 16:59 | DenisChenu | Assigned To | gabrieljenik => kfoster |
2023-09-13 17:58 | gabrieljenik | Note Added: 77016 | |
2023-09-13 17:58 | gabrieljenik | Bug heat | 4 => 6 |
2023-09-13 17:58 | gabrieljenik | Assigned To | kfoster => gabrieljenik |
2023-09-18 14:24 | gabrieljenik | Assigned To | gabrieljenik => kfoster |
2023-09-18 14:24 | gabrieljenik | Status | assigned => ready for code review |
2023-09-18 14:24 | gabrieljenik | Note Added: 77124 | |
2023-10-04 11:30 | LimeBot | Note Added: 77500 | |
2023-10-04 11:30 | LimeBot | Status | ready for code review => closed |
2023-10-04 11:30 | LimeBot | Resolution | open => fixed |
2023-10-04 11:30 | LimeBot | Bug heat | 6 => 8 |
2023-10-04 11:32 | Changeset attached | => LimeSurvey 5.x 0cea5e54 | |
2023-10-04 11:32 | guest | Note Added: 77503 | |
2023-10-04 11:32 | guest | Bug heat | 8 => 10 |
2023-10-10 04:15 | mfavetti | Relationship added | related to 19160 |