View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
17370Bug reportsTheme editorpublic2021-06-21 15:09
ReporterDenisChenu Assigned Toollehar  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version3.25.20 
Summary17370: aSurveyInfo.datasecurity_notice_label do not return only the label
Description

aSurveyInfo.datasecurity_notice_label return the real label for inline text , nut with collapsible text : it's updated.
This make harder for theme dev to have a different sentence

Steps To Reproduce

Import inluded survey and included template, try to update or find sentence "Afficher la politique" in model.

This come from updated aSurveyInfo.datasecurity_notice_label
With inline : aSurveyInfo.datasecurity_notice_label return the real clean value.

Additional Information

Return clean value is always needed if you want Theme developer make great theme.

Same variable must return same value always.

Sentence : https://github.com/LimeSurvey/LimeSurvey/blob/86d4a00c551c1f11e91991eadcd635ec9514486c/themes/survey/vanilla/views/subviews/privacy/privacy_modal.twig#L22
«Same» sentence : https://github.com/LimeSurvey/LimeSurvey/blob/86d4a00c551c1f11e91991eadcd635ec9514486c/themes/survey/vanilla/views/subviews/privacy/privacy_text.twig#L27

TagsNo tags attached.
Attached Files
limesurvey_survey_policy_1.lss (37,144 bytes)   
limesurvey_survey_policy_2.lss (36,853 bytes)   
policy_vanilla.zip (117,243 bytes)
Bug heat4
Complete LimeSurvey version number (& build)3.27.2
I will donate to the project if issue is resolvedNo
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

ollehar

ollehar

2021-06-17 15:28

administrator   ~64946

Same issue in LS5?

DenisChenu

DenisChenu

2021-06-20 18:42

developer   ~64956

Yes
https://bugs.limesurvey.org/view.php?id=17374

It's the «««««concept»»»»»

ollehar

ollehar

2021-06-21 14:27

administrator   ~64961

Sooo, you want a new variable that returns only the parts you need, without wrapping it?

DenisChenu

DenisChenu

2021-06-21 14:56

developer   ~64962

Maybe default must be twigable ?

ollehar

ollehar

2021-06-21 14:58

administrator   ~64963

Can't change it without breaking themes.

DenisChenu

DenisChenu

2021-06-21 14:59

developer   ~64964

Here : the link (a) can not be updated ({STARTPOLICYLINK})
The default string can not be updated etc …

DenisChenu

DenisChenu

2021-06-21 15:00

developer   ~64965

Can : just create the default twig in core view.

ollehar

ollehar

2021-06-21 15:04

administrator   ~64967

Ah. Well, feel free to code away. :)

DenisChenu

DenisChenu

2021-06-21 15:09

developer   ~64968

Need :

  • STARTPOLICYLINK_replace.twig
  • ENDPOLICYLINK_replace.twig
  • dataSecurityNoticeLabel.twig

or

  • STARTPOLICYLINK_replace.twig + STARTPOLICYLINK_2_replace.twig
  • ENDPOLICYLINK_replace.twig + ENDPOLICYLINK_2_replace.twig
  • dataSecurityNoticeLabel.twig

Issue History

Date Modified Username Field Change
2021-06-17 09:19 DenisChenu New Issue
2021-06-17 09:19 DenisChenu File Added: limesurvey_survey_policy_1.lss
2021-06-17 09:19 DenisChenu File Added: limesurvey_survey_policy_2.lss
2021-06-17 09:19 DenisChenu File Added: policy_vanilla.zip
2021-06-17 15:28 ollehar Note Added: 64946
2021-06-20 18:34 DenisChenu Summary aSurveyInfo.datasecurity_notice_label do npot return only the label => aSurveyInfo.datasecurity_notice_label do not return only the label
2021-06-20 18:34 DenisChenu Issue cloned: 17374
2021-06-20 18:42 DenisChenu Note Added: 64956
2021-06-21 14:27 ollehar Note Added: 64961
2021-06-21 14:27 ollehar Assigned To => ollehar
2021-06-21 14:27 ollehar Status new => feedback
2021-06-21 14:56 DenisChenu Note Added: 64962
2021-06-21 14:56 DenisChenu Status feedback => assigned
2021-06-21 14:58 ollehar Note Added: 64963
2021-06-21 14:59 DenisChenu Note Added: 64964
2021-06-21 15:00 DenisChenu Note Added: 64965
2021-06-21 15:04 ollehar Note Added: 64967
2021-06-21 15:09 DenisChenu Note Added: 64968