View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20723 | Bug reports | Database design | public | 2026-09-24 16:23 | 2026-10-09 15:19 |
| Reporter | DenisChenu | Assigned To | c_schmitz | ||
| Priority | none | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 7.3.x | ||||
| Summary | 20723: When delete a survey : old responses and token table arenot deleted | ||||
| Description | When deleting a survey: old responses table are not deleted. | ||||
| Steps To Reproduce | Steps to reproduceCreate a survey Expected resultOld response table are deleted Actual resultThe response table was deleted, but the old response table is still there | ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 7.3.0 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | not relevant | ||||
| Database type & version | not relevant | ||||
| Server OS (if known) | not relevant | ||||
| Webserver software & version (if known) | not relevant | ||||
| PHP Version | not relevant | ||||
|
I'm happy to fix it when 20722 is fixed. |
|
|
Old response tables were never deleted in this scenario - but I think this might be a good idea. |
|
What do you mean ? I think old_reponse table (and all other old tables) must be deleted when a survey is deleted. PS : i think we need a "delete old table" by survey manager (if they have respo,nse/demlete and token delet permisison) |
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40719 |
|
|
LimeSurvey: master aecf33e1 2026-10-09 15:19 Details Diff |
Fixed issue 20723: Deleting a survey left its archived response, timings and participant tables behind Dev Survey::delete() now drops all old_*_<sid>_* tables and their archived_table_settings; delete confirmation warns about archived data |
Affected Issues 20723 |
|
| mod - application/models/Survey.php | Diff File | ||
| mod - application/views/surveyAdministration/deleteSurvey_view.php | Diff File | ||
| add - tests/unit/models/SurveyDeleteArchivedTablesTest.php | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-09-24 16:23 | DenisChenu | New Issue | |
| 2026-09-24 16:24 | DenisChenu | Relationship added | related to 20722 |
| 2026-09-24 16:24 | DenisChenu | Note Added: 85970 | |
| 2026-09-24 16:24 | DenisChenu | Bug heat | 0 => 2 |
| 2026-09-24 17:58 | c_schmitz | Note Added: 85977 | |
| 2026-09-24 17:58 | c_schmitz | Bug heat | 2 => 4 |
| 2026-09-24 18:02 | DenisChenu | Note Added: 85978 | |
| 2026-09-24 18:03 | DenisChenu | Note Edited: 85978 | |
| 2026-10-09 15:19 | c_schmitz | Changeset attached | => LimeSurvey master aecf33e1 |
| 2026-10-09 15:19 | c_schmitz | Note Added: 86275 | |
| 2026-10-09 15:19 | c_schmitz | Assigned To | => c_schmitz |
| 2026-10-09 15:19 | c_schmitz | Status | new => resolved |
| 2026-10-09 15:19 | c_schmitz | Resolution | open => fixed |