Skip to content

Commit 9efe7c5

Browse files
authored
Merge pull request #37 from acorncom/patch-1
Pass in relationship name in addition to the query
2 parents d16bab2 + fdf868b commit 9efe7c5

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)