mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4728 from madmatt/pulls/gridfield-list-fix
BUGFIX: Use Object->hasMethod() instead of method_exists()
This commit is contained in:
commit
0d1bdd58b3
@ -149,7 +149,7 @@ class GridField extends FormField {
|
|||||||
return $this->modelClassName;
|
return $this->modelClassName;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->list && method_exists($this->list, 'dataClass')) {
|
if($this->list && $this->list->hasMethod('dataClass')) {
|
||||||
$class = $this->list->dataClass();
|
$class = $this->list->dataClass();
|
||||||
|
|
||||||
if($class) {
|
if($class) {
|
||||||
|
Loading…
Reference in New Issue
Block a user