Remove incorrect method arguments

This commit is contained in:
flynsarmy 2014-07-30 20:44:18 +10:00
parent a56022d764
commit 2e76630ce6

View File

@ -118,9 +118,9 @@ class DataGrid extends FormWidgetBase
throw new ApplicationException('Model :model does not contain a method getGridDataSourceValues()'); throw new ApplicationException('Model :model does not contain a method getGridDataSourceValues()');
if ($this->model->methodExists($methodName)) if ($this->model->methodExists($methodName))
$result = $this->model->$methodName($field, $value, $data); $result = $this->model->$methodName();
else else
$result = $this->model->getGridDataSourceValues($this->columnName, $field, $value, $data); $result = $this->model->getGridDataSourceValues($this->columnName);
if (!is_array($result)) if (!is_array($result))
$result = []; $result = [];