Commit 4a10c31
authored
Resolve deprecation warning when calling static method on Extensible trait (#63)
* Update GridFieldOrderableRowsExtension.php
On a non versioned dataobject, gridfieldorderablerowsextension throws deprecation warning when reordering objects:
[Deprecated] Calling static trait method SilverStripe\Core\Extensible::has_extension is deprecated, it should only be called on a class using the trait
POST /admin/pages/edit/EditForm/34/field/ElementalArea/item/97/ItemEditForm/field/AccordionItems/reorder
Line 78 in /var/www/mysite/www/vendor/silverstripe-terraformers/keys-for-cache/src/Extensions/GridFieldOrderableRowsExtension.php
Changing to DataObject (has trait Extensible, all gridfield objects should extend DO) fixes this. Not sure if this was introduced from php8 upgrade or the recent security patch
* Update GridFieldOrderableRowsExtension.php1 parent eab67e2 commit 4a10c31
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
0 commit comments