passing additional parameters for removing aggregation from file
@@ -794,7 +794,7 @@ def rename_irods_file_or_folder_in_django(resource, src_name, tgt_name):
# if the source file is part of a FileSet or Model Program aggregation (based on folder), we need to remove it
# from that aggregation in the case the file is being moved out of that aggregation
if file_or_folder_move and resource.resource_type == 'CompositeResource':
- resource.remove_aggregation_from_file(res_file_obj)
+ resource.remove_aggregation_from_file(res_file_obj, src_folder, tgt_folder)
# checks tgt_name as a side effect.
ResourceFile.resource_path_is_acceptable(resource, tgt_name, test_exists=True)
