View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
17845Bug reportsLabel setspublic2023-05-20 00:34
ReporterMazi Assigned Togabrieljenik  
PrioritynoneSeverityblock 
Status assignedResolutionopen 
Product Version5.2.x 
Summary17845: Label set preview only shows last item, other items are missing
Description

I have created a label set with 5 answer options. When previeiwing the label set, only the last option is shown. Same for editing a label set. If you have changed the label set title you see the options afterwards. Again, only the last item is shown.

When exporting the label set I can see that all 5 answer options are still there.

Steps To Reproduce

Steps to reproduce

Import the attached label set and click the preview button.
Alternatively, edit the label set and click save

Expected result

See all answer options

Actual result

Only the last answer option is displayed.

TagsNo tags attached.
Attached Files
limesurvey_labelset_6.lsl (1,950 bytes)   
<?xml version="1.0" encoding="UTF-8"?>
<document>
 <LimeSurveyDocType>Label set</LimeSurveyDocType>
 <DBVersion>479</DBVersion>
 <labelsets>
  <fields>
   <fieldname>lid</fieldname>
   <fieldname>label_name</fieldname>
   <fieldname>languages</fieldname>
  </fields>
  <rows>
   <row>
    <lid><![CDATA[6]]></lid>
    <label_name><![CDATA[Wichtigkeit 1-5]]></label_name>
    <languages><![CDATA[de]]></languages>
   </row>
  </rows>
 </labelsets>
 <labels>
  <fields>
   <fieldname>id</fieldname>
   <fieldname>lid</fieldname>
   <fieldname>code</fieldname>
   <fieldname>sortorder</fieldname>
   <fieldname>assessment_value</fieldname>
  </fields>
  <rows>
   <row>
    <id><![CDATA[6]]></id>
    <lid><![CDATA[6]]></lid>
    <code><![CDATA[5]]></code>
    <sortorder><![CDATA[4]]></sortorder>
    <assessment_value><![CDATA[5]]></assessment_value>
   </row>
  </rows>
 </labels>
 <label_l10ns>
  <fields>
   <fieldname>id</fieldname>
   <fieldname>label_id</fieldname>
   <fieldname>title</fieldname>
   <fieldname>language</fieldname>
  </fields>
  <rows>
   <row>
    <id><![CDATA[26]]></id>
    <label_id><![CDATA[6]]></label_id>
    <title><![CDATA[Sehr wichtig]]></title>
    <language><![CDATA[de]]></language>
   </row>
   <row>
    <id><![CDATA[27]]></id>
    <label_id><![CDATA[6]]></label_id>
    <title><![CDATA[Eher wichtig]]></title>
    <language><![CDATA[de]]></language>
   </row>
   <row>
    <id><![CDATA[28]]></id>
    <label_id><![CDATA[6]]></label_id>
    <title><![CDATA[Teils/teils]]></title>
    <language><![CDATA[de]]></language>
   </row>
   <row>
    <id><![CDATA[29]]></id>
    <label_id><![CDATA[6]]></label_id>
    <title><![CDATA[Eher unwichtig]]></title>
    <language><![CDATA[de]]></language>
   </row>
   <row>
    <id><![CDATA[30]]></id>
    <label_id><![CDATA[6]]></label_id>
    <title><![CDATA[Sehr unwichtig]]></title>
    <language><![CDATA[de]]></language>
   </row>
  </rows>
 </label_l10ns>
</document>
limesurvey_labelset_6.lsl (1,950 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)Version 5.2.10+220118
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionmysqlnd 8.0.14
Server OS (if known)Ubuntu 20
Webserver software & version (if known)Apache 2.0
PHP Version8.0.14

Relationships

related to 18040 closedollehar Add buttons submit the whole labelset instead of only adding a row 

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2022-01-20 12:32

administrator   ~68060

Related to other issues with label sets in question editor?

Mazi

Mazi

2022-01-20 14:27

updater   ~68067

Last edited: 2022-01-24 10:28

@olehar: No idea!? Link?

ollehar

ollehar

2022-01-20 14:28

administrator   ~68068

Last edited: 2022-01-24 10:28

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

Mazi

Mazi

2022-01-20 14:32

updater   ~68069

Last edited: 2022-01-24 10:28

@ollehar: Could be related, but my issue affects a different screen (global label set management).

ollehar

ollehar

2022-01-20 14:36

administrator   ~68070

Last edited: 2022-01-24 10:28

Ah, OK. Is this a regression, or was it broken since LS 5.0?

Mazi

Mazi

2022-01-20 14:37

updater   ~68071

Last edited: 2022-01-24 10:28

No idea... but it IS a bug.

ollehar

ollehar

2022-01-20 14:38

administrator   ~68072

Last edited: 2022-01-24 10:28

Yes, just easier for us to approach if we have some info. :)

Ahmed is sick this week.

gabrieljenik

gabrieljenik

2022-04-21 22:00

manager   ~69187

These are the steps I did:
1- Create label set
2 - Use it in a question.
3 - Use the preview label set button, before confirming the label set to use.

I wasn't able to find a preview button close to the global label sets.

I was not able to reproduce the issue.
The given labelset file contain a single option with 5 languages (equal languages, not different languages).

Maybe the bug is on the export process?

I was trying to play around with that screen using multiple languages and got to some strange situations.
18027 already tackled some stuff.

But I think it needs more reviewal.
Will add it to the 18040 ticket.

image.png (36,036 bytes)   
image.png (36,036 bytes)   
gabrieljenik

gabrieljenik

2022-04-21 22:02

manager   ~69188

What if we try to reproduce this after 18040 is done?

Mazi

Mazi

2022-04-22 11:50

updater   ~69192

Sounds like a plan, @gabrieljenik.

ollehar

ollehar

2023-05-03 13:33

administrator   ~74775

Status?

Mazi

Mazi

2023-05-03 13:41

updater   ~74776

@ollehar, preview works fine but as @gabrieljenik has pointed out, the label set I had attached used the same ID for each option which is wrong.
So it could be more like an export label set issue.
I think we can close this for now if there are no related tickets for exporting label sets.

gabrieljenik

gabrieljenik

2023-05-03 14:35

manager   ~74779

I will export, import, add items, looking for a regresion.
If all good, will close it.

gabrieljenik

gabrieljenik

2023-05-20 00:34

manager   ~75124

Found this on the PR list: https://github.com/LimeSurvey/LimeSurvey/pull/2975

Still have to pick this up

Issue History

Date Modified Username Field Change
2022-01-20 12:30 Mazi New Issue
2022-01-20 12:30 Mazi File Added: limesurvey_labelset_6.lsl
2022-01-20 12:32 ollehar Note Added: 68060
2022-01-20 12:32 ollehar Bug heat 0 => 2
2022-01-20 14:27 Mazi Note Added: 68067
2022-01-20 14:27 Mazi Bug heat 2 => 4
2022-01-20 14:28 ollehar Note Added: 68068
2022-01-20 14:32 Mazi Note Added: 68069
2022-01-20 14:36 ollehar Note Added: 68070
2022-01-20 14:37 Mazi Note Added: 68071
2022-01-20 14:38 ollehar Note Added: 68072
2022-01-24 10:28 galads Zoho Project Synchronization => |Yes|
2022-01-24 10:28 galads Assigned To => galads
2022-01-24 10:28 galads Status new => confirmed
2022-03-31 11:53 galads Assigned To galads => gabrieljenik
2022-03-31 11:53 galads Zoho Project Synchronization Yes =>
2022-04-21 22:00 gabrieljenik Note Added: 69187
2022-04-21 22:00 gabrieljenik File Added: image.png
2022-04-21 22:00 gabrieljenik Bug heat 4 => 6
2022-04-21 22:02 gabrieljenik Note Added: 69188
2022-04-21 22:04 gabrieljenik Relationship added related to 18040
2022-04-22 11:50 Mazi Note Added: 69192
2023-05-03 13:33 ollehar Note Added: 74775
2023-05-03 13:33 ollehar Status confirmed => feedback
2023-05-03 13:41 Mazi Note Added: 74776
2023-05-03 13:41 Mazi Status feedback => assigned
2023-05-03 14:35 gabrieljenik Note Added: 74779
2023-05-20 00:34 gabrieljenik Note Added: 75124