View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
12412Feature requestsRemoteControlpublic2017-05-18 16:16
Reporterbrammeleman Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Summary12412: File upload responses are not removed when deleting surveys with the API
Description

While file upload responses are deleted when deleting a survey from the survey admin interface, they aren't when surveys are deleted with an API call.

Additional Information

There's a little wrapper function in application/controllers/admin/surveyadmin.php (line 1553) that calls the Survey model with deleteSurvey, followed by an rmdirr call with the appropiate upload directory for the specified sid.
The rmdirr call is not present in the delete_survey method of the remotecontrol_handle (line 174 of application/helpers/remotecontrol/remotecontrol_handle.php)

I would suggest moving the rmdirr call to the deleteSurvey method of the Survey model. That would also eliminate the need for the _deleteSurvey wrapper in the SurveyAdmin.

Bests,

Bram

Radboud University
NL

TagsNo tags attached.
Bug heat0
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2017-05-18 16:16 brammeleman New Issue