Skip to content

Commit 26924c0

Browse files
authored
Fix(Model): add missing purge action (#549)
* Fix(Model): add missing purge action * adapt changelog
1 parent 1466c4a commit 26924c0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Fixed
1111

12+
- Fix missing `purge` action
13+
14+
### Fixed
15+
1216
- Fix user fields nullability to prevent SQL errors during injection
1317
- Remove groups as import link field
1418
- Fix `clean` function

front/model.form.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363
$specific_model = PluginDatainjectionModel::getInstance('csv');
6464
$specific_model->saveFields($_POST);
6565
Html::back();
66+
} elseif (isset($_POST["purge"])) {
67+
$model->check($_POST['id'], PURGE);
68+
$model->delete($_POST, true);
69+
70+
$model->redirectToList();
6671
} elseif (isset($_POST["validate"])) {
6772
/* update order */
6873
$model->check($_POST['id'], UPDATE);

0 commit comments

Comments
 (0)