file delete bugfixes

This commit is contained in:
carodej
2020-04-08 09:37:54 +02:00
parent 01b399e4a6
commit 9db34fd90e
9 changed files with 204 additions and 371 deletions

View File

@@ -153,9 +153,9 @@ function appeared_once($arr)
* @param $folders
* @return array
*/
function filter_folders_ids($folders)
function filter_folders_ids($folders, $by_column = 'unique_id')
{
$folder_unique_ids = recursiveFind($folders->toArray(), 'unique_id');
$folder_unique_ids = recursiveFind($folders->toArray(), $by_column);
return appeared_once($folder_unique_ids);
}