We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 060fadd commit 7a22a16Copy full SHA for 7a22a16
2 files changed
CHANGELOG.md
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
10
### Fixed
11
12
- Remove groups as import link field
13
+- Fix `clean` function
14
15
## [2.15.1] - 2025-10-14
16
inc/model.class.php
@@ -837,10 +837,7 @@ public static function clean($crit = [])
837
$model = new self();
838
839
if ((count($crit) > 0)) {
840
- $crit['FIELDS'] = 'id';
841
- foreach ($DB->doQuery($model->getTable()) as $row) {
842
- $model->delete($row);
843
- }
+ $model->deleteByCriteria($crit);
844
}
845
846
0 commit comments