From: Bjoern Schiessle Date: Mon, 2 Dec 2013 10:59:09 +0000 (+0100) Subject: set delete all to true if a complete folder was deleted X-Git-Tag: v7.0.0alpha2~1102^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=edc4447d6a285d778ae2ff242877fc98fdcaa2ba;p=nextcloud-server.git set delete all to true if a complete folder was deleted --- diff --git a/apps/files_trashbin/ajax/delete.php b/apps/files_trashbin/ajax/delete.php index 7b1949e3154..7b41eb1ea80 100644 --- a/apps/files_trashbin/ajax/delete.php +++ b/apps/files_trashbin/ajax/delete.php @@ -4,8 +4,8 @@ OCP\JSON::checkLoggedIn(); OCP\JSON::callCheck(); // "empty trash" command -$deleteAll = false; if (isset($_POST['allfiles']) and $_POST['allfiles'] === 'true'){ + $deleteAll = true; $folder = isset($_POST['dir']) ? $_POST['dir'] : '/'; if ($folder === '/') { OCA\Files_Trashbin\Trashbin::deleteAll(); @@ -20,6 +20,7 @@ if (isset($_POST['allfiles']) and $_POST['allfiles'] === 'true'){ } } else { + $deleteAll = false; $files = $_POST['files']; $dirlisting = $_POST['dirlisting']; $list = json_decode($files);