Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
18541Bug reportsData Entry (non public)public2023-02-27 11:34
Reporteradamzammit Assigned Toadamzammit  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version5.4.x 
Summary18541: Data entry screen incorrectly assigns 0 value to empty multiflex array checkbox values (master)
Description

When editing a response in the data entry screen that has empty multiflex array checkbox values (eg the respondent has not checked a particular item in the checkbox array), then the data entry screen incorrectly assigns a 0 value by default in the dropdown box.

This means that even if no changes are made on the data entry page, but the page is saved, then the data changes in the database (i.e all empty multiflex array items get changed to a 0 value).

The value should not change.

Steps To Reproduce

Steps to reproduce

Go to the data entry/edit page for a response in a survey that has un-checked multiflex array checkbox values and then click save

Expected result

Data in response row to remain consistent

Actual result

All empty multiflex array checkbox values are written as 0's

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)5.4.13
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql
Server OS (if known)
Webserver software & version (if known)
PHP Version8.0

Relationships

related to 18532 closedadamzammit Data entry screen incorrectly assigns 0 value to empty multiflex array checkbox values 

Activities

adamzammit

adamzammit

2023-02-21 00:08

developer   ~73892

pull request here: https://github.com/LimeSurvey/LimeSurvey/pull/2765

adamzammit

adamzammit

2023-02-21 23:24

developer   ~73922

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

LimeBot

LimeBot

2023-02-27 11:34

administrator   ~73956

Fixed in Release 5.6.8+230227

Related Changesets

LimeSurvey: master 857e807c

2023-02-21 23:24:40

adamzammit


Committer: GitHub Details Diff
Fixed issue 18541: Data entry screen incorrectly assigns 0 value to empty multiflex array checkbox values (master) (PR #2765)

Fixed issue 18541: Data entry screen incorrectly assigns 0 value to empty multiflex array checkbox values (master)
Affected Issues
18541
mod - application/controllers/admin/DataEntry.php Diff File

Issue History

Date Modified Username Field Change
2022-12-05 00:22 adamzammit New Issue
2022-12-05 00:22 adamzammit Relationship added related to 18532
2022-12-05 00:22 adamzammit Assigned To => adamzammit
2022-12-05 00:22 adamzammit Status new => assigned
2023-02-21 00:08 adamzammit Note Added: 73892
2023-02-21 00:08 adamzammit Bug heat 0 => 2
2023-02-21 23:24 adamzammit Changeset attached => LimeSurvey master 857e807c
2023-02-21 23:24 adamzammit Note Added: 73922
2023-02-21 23:24 adamzammit Resolution open => fixed
2023-02-27 11:34 LimeBot Note Added: 73956
2023-02-27 11:34 LimeBot Status assigned => closed
2023-02-27 11:34 LimeBot Bug heat 2 => 4