View Issue Details

IDProjectCategoryView StatusLast Update
12412Feature requests[All Projects] RemoteControlpublic2017-05-18 16:16
ReporterbrammelemanAssigned To 
Status newResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary12412: File upload responses are not removed when deleting surveys with the API
DescriptionWhile 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 InformationThere'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.



Radboud University
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

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