Changed notice for many_many relationships if the extra field is not an int issue #62

This commit is contained in:
UndefinedOffset 2014-10-16 10:25:23 -03:00
parent 2e9b7beffd
commit b0d1ad1e9c
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
$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]))) {
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;
}
}else {