mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-06-26 06:29:20 +02:00
Fix incorrect property accessing.
This commit is contained in:
parent
585b03719f
commit
1bc24992c6
|
@ -56,8 +56,8 @@ class GridFieldOrderableRows extends RequestHandler implements
|
|||
$extra = $list->getExtraFields();
|
||||
$table = $list->getJoinTable();
|
||||
|
||||
if(array_key_exists($field, $extra->getValue($list))) {
|
||||
return $table->getValue($list);
|
||||
if(array_key_exists($field, $extra)) {
|
||||
return $table;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -266,8 +266,8 @@ class GridFieldOrderableRows extends RequestHandler implements
|
|||
$extra = $list->getExtraFields();
|
||||
$key = $list->getLocalKey();
|
||||
|
||||
if(array_key_exists($this->getSortField(), $extra->getValue($list))) {
|
||||
return sprintf('"%s" %s', $key->getValue($list), $value);
|
||||
if(array_key_exists($this->getSortField(), $extra)) {
|
||||
return sprintf('"%s" %s', $key, $value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user