Skip to content

Commit 8a4f5f9

Browse files
committed
rename setting
1 parent 79351d1 commit 8a4f5f9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ An alternative option, is to disable that feature:
7171

7272
```yml
7373
SoftDeletable:
74-
filters_on_id: true
74+
check_filters_on_id: false
7575
```
7676
7777
Keep in mind that `DataObject::get_by_id();` can get cached and it can lead to tricky scenarios.

_config/softdelete.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Name: softdelete
33
---
44
SoftDeletable:
5-
filters_on_id: true
5+
check_filters_on_id: true
66
SilverStripe\Admin\ModelAdmin:
77
softdelete_from_list: true
88
softdelete_from_list_exclude: []

code/SoftDeletable.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
102102
return;
103103
}
104104
// Don't run if querying by ID
105-
if ($query->filtersOnID() && self::config()->filters_on_id) {
105+
if ($query->filtersOnID() && self::config()->check_filters_on_id) {
106106
return;
107107
}
108108

0 commit comments

Comments
 (0)