Merge pull request #2419 from LukeTowers/patch-6

Pass current model to record finder scope method
This commit is contained in:
Samuel Georges 2016-10-15 10:50:54 +11:00 committed by GitHub
commit 19bab2b472
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ class RecordFinder extends FormWidgetBase
}
elseif ($scopeMethod = $this->scope) {
$widget->bindEvent('list.extendQueryBefore', function($query) use ($scopeMethod) {
$query->$scopeMethod();
$query->$scopeMethod($this->model);
});
}
else {