Skip to content

Commit

Permalink
rename setting
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Dec 9, 2022
1 parent 79351d1 commit 8a4f5f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ An alternative option, is to disable that feature:

```yml
SoftDeletable:
filters_on_id: true
check_filters_on_id: false
```
Keep in mind that `DataObject::get_by_id();` can get cached and it can lead to tricky scenarios.
Expand Down
2 changes: 1 addition & 1 deletion _config/softdelete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Name: softdelete
---
SoftDeletable:
filters_on_id: true
check_filters_on_id: true
SilverStripe\Admin\ModelAdmin:
softdelete_from_list: true
softdelete_from_list_exclude: []
Expand Down
2 changes: 1 addition & 1 deletion code/SoftDeletable.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
return;
}
// Don't run if querying by ID
if ($query->filtersOnID() && self::config()->filters_on_id) {
if ($query->filtersOnID() && self::config()->check_filters_on_id) {
return;
}

Expand Down

0 comments on commit 8a4f5f9

Please sign in to comment.