Bug 108732 - listbox setting a new SelectedValue sets to NULL instead
Summary: listbox setting a new SelectedValue sets to NULL instead
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
5.3.3.2 release
Hardware: All All
: medium normal
Assignee: Lionel Elie Mamane
URL:
Whiteboard: target:6.0.0 target:5.3.5 target:5.4.0.2
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-24 12:48 UTC by Lionel Elie Mamane
Modified: 2017-06-26 11:46 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lionel Elie Mamane 2017-06-24 12:48:48 UTC
Description:
Setting SelectedValue seems to change the value to NULL if the current value and new value are different.

Print oListBox.CurrentValue // current value is "yes"
oListBox.SelectedValue = "yes"
Print oListBox.CurrentValue // shows as "yes"

Print oListBox.CurrentValue // current value is "no"
oListBox.SelectedValue = "yes"
Print oListBox.CurrentValue // shows as "" (NULL)


Steps to Reproduce:
.

Actual Results:  
.

Expected Results:
.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Comment 1 Commit Notification 2017-06-24 13:25:25 UTC
Lionel Elie Mamane committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=ecdcf38a3250536d9b7f48a8ded50e23ccfcd1df

tdf#108732 ListBox: in absence of a field, treat data as string

It will be available in 6.0.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Commit Notification 2017-06-26 11:44:59 UTC
Lionel Elie Mamane committed a patch related to this issue.
It has been pushed to "libreoffice-5-3":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=39ea36bf8602744c27c16369c88db2858653b59f&h=libreoffice-5-3

tdf#108732 ListBox: in absence of a field, treat data as string

It will be available in 5.3.5.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2017-06-26 11:46:15 UTC
Lionel Elie Mamane committed a patch related to this issue.
It has been pushed to "libreoffice-5-4":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=7173b70d665608f3823f4a3ff0653f84c0630ed3&h=libreoffice-5-4

tdf#108732 ListBox: in absence of a field, treat data as string

It will be available in 5.4.0.2.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.