View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
18305Bug reportsUser / Groups / Rolespublic2022-09-14 10:58
ReporterGodieV Assigned Togabrieljenik  
PrioritynormalSeveritycrash 
Status closedResolutionfixed 
Product Version5.3.x 
Summary18305: Deleting a user that owns survey participans causes error on view CPDB
Description

Deleting user with related participant/s causes not a reassignment warning but an error, delete record into db but owner_uid of participant remains with deleted one.

Steps To Reproduce

Steps to reproduce

  1. Create survey and participant with user A.
  2. Delete user A.
  3. Access to survey, Survey participants > View CPDB

Expected result

On step 2, reassign participant to another user or warns to do it
On step 3, everything works

Actual result

Causes an error while deleting user on step 2, deleting it but preserving list_participant.owner_uid value
On step 3, attachment error (php warning).

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)5.3.28 (docker acspri/limesurvey:5.3.29)
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionmsyql 5.7.11
Server OS (if known)
Webserver software & version (if known)
PHP Version8.0.21

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2022-08-08 14:34

administrator   ~71383

Same error with debug 0?

GodieV

GodieV

2022-08-09 08:29

reporter   ~71387

Thanks, ollehar, without debug mode warning screen doesn't appears.

gabrieljenik

gabrieljenik

2022-08-11 20:04

manager   ~71416

PR Master https://github.com/LimeSurvey/LimeSurvey/pull/2567

Transfer participants owned by the deleted user to site's admin

gabrieljenik

gabrieljenik

2022-08-26 15:09

manager   ~71531

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

LimeBot

LimeBot

2022-09-14 10:58

administrator   ~71711

Fixed in Release 5.4.0+220913

Related Changesets

LimeSurvey: master 012515ce

2022-08-26 15:09:30

gabrieljenik


Committer: GitHub Details Diff
Fixed issue 18305: Deleting a user that owns survey participans causes error on view CPDB (#2567)

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
Affected Issues
18305
mod - application/controllers/UserManagementController.php Diff File
mod - application/models/Participant.php Diff File

Issue History

Date Modified Username Field Change
2022-08-08 13:28 GodieV New Issue
2022-08-08 13:28 GodieV File Added: Captura de pantalla de 2022-08-04 10-11-54.png
2022-08-08 14:34 ollehar Note Added: 71383
2022-08-08 14:34 ollehar Bug heat 0 => 2
2022-08-09 08:29 GodieV Note Added: 71387
2022-08-09 08:29 GodieV Bug heat 2 => 4
2022-08-09 16:16 gabrieljenik Status new => acknowledged
2022-08-09 16:16 gabrieljenik Priority none => normal
2022-08-09 16:16 gabrieljenik Severity minor => crash
2022-08-09 16:17 gabrieljenik Assigned To => gabrieljenik
2022-08-09 16:17 gabrieljenik Status acknowledged => assigned
2022-08-11 20:04 gabrieljenik Assigned To gabrieljenik => DenisChenu
2022-08-11 20:04 gabrieljenik Status assigned => ready for code review
2022-08-11 20:04 gabrieljenik Note Added: 71416
2022-08-11 20:04 gabrieljenik Bug heat 4 => 6
2022-08-23 11:59 DenisChenu Assigned To DenisChenu =>
2022-08-23 11:59 DenisChenu Status ready for code review => ready for testing
2022-08-26 15:09 gabrieljenik Changeset attached => LimeSurvey master 012515ce
2022-08-26 15:09 gabrieljenik Note Added: 71531
2022-08-26 15:09 gabrieljenik Assigned To => gabrieljenik
2022-08-26 15:09 gabrieljenik Resolution open => fixed
2022-09-14 10:58 LimeBot Note Added: 71711
2022-09-14 10:58 LimeBot Status ready for testing => closed
2022-09-14 10:58 LimeBot Bug heat 6 => 8