file added to sub folder of mp aggregation becomes part of the aggregation
@@ -910,7 +910,7 @@ def add_file_to_resource(resource, f, folder=None, source_name='',
ret = ResourceFile.create(resource, openfile, folder=folder, source=None)
if add_to_aggregation:
if folder is not None and resource.resource_type == 'CompositeResource':
- aggregation = resource.get_mp_aggregation_at_path(folder)
+ aggregation = resource.get_mp_aggregation_in_path(folder)
if aggregation is None:
aggregation = resource.get_fileset_aggregation_in_path(folder)
if aggregation is not None:
