Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Flexible Learning/CHANGEDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,3 +297,8 @@
$sql[$count][0] = '1.4.00';
$sql[$count][1] = "";

//v1.4.01
++$count;
$sql[$count][0] = '1.4.01';
$sql[$count][1] = "";

4 changes: 4 additions & 0 deletions Flexible Learning/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
=========

v1.4.01
-------
Added file cleanup feature after a record is deleted

v1.4.00
-------
Added comprehensive file upload tracking system to monitor and manage all file uploads across the system
Expand Down
2 changes: 1 addition & 1 deletion Flexible Learning/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$entryURL = "units_browse.php";
$type = "Additional";
$category = 'Learn';
$version = '1.4.00';
$version = '1.4.01';
$author = "Gibbon Foundation";
$url = "https://gibbonedu.org";

Expand Down
3 changes: 3 additions & 0 deletions Flexible Learning/units_manage_deleteProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

use Gibbon\Contracts\Filesystem\FileHandler;
use Gibbon\Module\FlexibleLearning\Domain\UnitGateway;
use Gibbon\Module\FlexibleLearning\Domain\UnitBlockGateway;

Expand Down Expand Up @@ -61,6 +62,8 @@
$unitBlockGateway->deleteWhere(['flexibleLearningUnitID' => $flexibleLearningUnitID]);
$deleted = $unitGateway->delete($flexibleLearningUnitID);

$fileDeleted = $container->get(FileHandler::class)->deleteFile('flexibleLearningUnit', $flexibleLearningUnitID, 'logo');

$URL .= !$deleted
? '&return=error2'
: '&return=success0';
Expand Down
2 changes: 1 addition & 1 deletion Flexible Learning/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
/**
* Sets version information
*/
$moduleVersion = '1.4.00';
$moduleVersion = '1.4.01';
$coreVersion = '31.0.00';