Skip to content

Commit

Permalink
fix bug where wrong instance is passed for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ragingdave committed Mar 4, 2021
1 parent b432a2d commit f7b18a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ActionHasDependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function validateFields(ActionRequest $request)
foreach ($this->fields() as $field) {
if ($field instanceof NovaDependencyContainer) {
// do not add any fields for validation if container is not satisfied
if($field->areDependenciesSatisfied($this)) {
if ($field->areDependenciesSatisfied($request)) {
$availableFields[] = $field;
$this->extractChildFields($field->meta['fields']);
}
Expand Down

0 comments on commit f7b18a2

Please sign in to comment.