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
18532Bug reportsData Entry (non public)public2023-02-27 11:37
Reporteradamzammit Assigned Toadamzammit  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.28.x 
Summary18532: Data entry screen incorrectly assigns 0 value to empty multiflex array checkbox values
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)3.28.40
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql
Server OS (if known)
Webserver software & version (if known)
PHP Version7.4

Relationships

related to 18541 closedadamzammit Data entry screen incorrectly assigns 0 value to empty multiflex array checkbox values (master) 

Activities

adamzammit

adamzammit

2023-02-21 00:09

developer   ~73893

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

adamzammit

adamzammit

2023-02-21 23:23

developer   ~73921

Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=34335

LimeBot

LimeBot

2023-02-27 11:37

administrator   ~73958

Fixed in Release 3.28.51+230228

Related Changesets

LimeSurvey: 3.x-LTS eb663be1

2023-02-21 23:22:54

adamzammit


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

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

Issue History

Date Modified Username Field Change
2022-12-02 06:04 adamzammit New Issue
2022-12-02 06:51 adamzammit Assigned To => adamzammit
2022-12-02 06:51 adamzammit Status new => assigned
2022-12-05 00:22 adamzammit Relationship added related to 18541
2023-02-21 00:09 adamzammit Note Added: 73893
2023-02-21 00:09 adamzammit Bug heat 0 => 2
2023-02-21 23:23 adamzammit Changeset attached => LimeSurvey 3.x-LTS eb663be1
2023-02-21 23:23 adamzammit Note Added: 73921
2023-02-21 23:23 adamzammit Resolution open => fixed
2023-02-27 11:37 LimeBot Note Added: 73958
2023-02-27 11:37 LimeBot Status assigned => closed
2023-02-27 11:37 LimeBot Bug heat 2 => 4