Skip to content

Commit fdf868b

Browse files
authored
Pass in relationship name in addition to the query
1 parent d16bab2 commit fdf868b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/actions/ViewRelatedAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function run($id, $name)
4545
}
4646

4747
if ($this->prepareDataProvider !== null) {
48-
return call_user_func($this->prepareDataProvider, $this, $related);
48+
return call_user_func($this->prepareDataProvider, $this, $related, $name);
4949
}
5050

5151
if ($related->multiple) {
@@ -56,4 +56,4 @@ public function run($id, $name)
5656
return $related->one();
5757
}
5858
}
59-
}
59+
}

0 commit comments

Comments
 (0)