purge/remove: not deleting workflow-file anymore
Mass video digitization workflow management for archiving
Brought to you by:
pjotrek
The purge function to remove a signature from the workflow (Admin > Remove Entry) didn't remove the workflow-file (workflow-xml) anymore after switching to JSON capture requests.
All other things were deleted, but the workflow-file stays in the "todo" folder.
Fixed in revision 561.
The reason was that "$delete_targets" list in MthkTask::purge_data() method resolved the "CAPTURE_REQUEST" filename patterns for the workflow files:
$this->get_filename('CAPTURE_REQUEST', 'CAPTURE_REQUEST', 'TASK/TO_DO'),this worked in the past, because capture_request and workflow_files were /both/ '.v_ingest'.
The correct code is now:
$this->get_filename('WORKFLOW_FILE', 'WORKFLOW_FILE', 'TASK/TO_DO'),