mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Remove incorrect method arguments
This commit is contained in:
parent
a56022d764
commit
2e76630ce6
@ -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 = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user