mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Changed notice for many_many relationships if the extra field is not an int issue #62
This commit is contained in:
parent
2e9b7beffd
commit
b0d1ad1e9c
@ -164,7 +164,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
|||||||
$extraFields=$owner->many_many_extraFields($gridField->getName());
|
$extraFields=$owner->many_many_extraFields($gridField->getName());
|
||||||
|
|
||||||
if(!$extraFields || !array_key_exists($this->sortColumn, $extraFields) || !($extraFields[$this->sortColumn]=='Int' || is_subclass_of('Int', $extraFields[$this->sortColumn]))) {
|
if(!$extraFields || !array_key_exists($this->sortColumn, $extraFields) || !($extraFields[$this->sortColumn]=='Int' || is_subclass_of('Int', $extraFields[$this->sortColumn]))) {
|
||||||
user_error('Sort column '.$this->sortColumn.' must be an Int, column is of type '.$fieldType, E_USER_ERROR);
|
user_error('Sort column '.$this->sortColumn.' must be an Int, column is of type '.$extraFields[$this->sortColumn], E_USER_ERROR);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
|
Loading…
Reference in New Issue
Block a user