Skip to content

Commit

Permalink
Make sure to call before hook when for actions without form
Browse files Browse the repository at this point in the history
  • Loading branch information
zepfietje committed May 22, 2024
1 parent b367120 commit 00e7c30
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/actions/src/Concerns/InteractsWithActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public function callMountedAction(array $arguments = []): mixed
$action->callBefore();
}),
);
} else {
$action->callBefore();
}

$result = $action->call([
Expand Down
2 changes: 2 additions & 0 deletions packages/forms/src/Concerns/HasFormComponentActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public function callMountedFormComponentAction(array $arguments = []): mixed
$action->callBefore();
}),
);
} else {
$action->callBefore();
}

$result = $action->call([
Expand Down
2 changes: 2 additions & 0 deletions packages/infolists/src/Concerns/InteractsWithInfolists.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ public function callMountedInfolistAction(array $arguments = []): mixed
$action->callBefore();
}),
);
} else {
$action->callBefore();
}

$result = $action->call([
Expand Down
2 changes: 2 additions & 0 deletions packages/tables/src/Concerns/HasActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public function callMountedTableAction(array $arguments = []): mixed
$action->callBefore();
}),
);
} else {
$action->callBefore();
}

$result = $action->call([
Expand Down
2 changes: 2 additions & 0 deletions packages/tables/src/Concerns/HasBulkActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public function callMountedTableBulkAction(array $arguments = []): mixed
$action->callBefore();
}),
);
} else {
$action->callBefore();
}

$result = $action->call([
Expand Down

0 comments on commit 00e7c30

Please sign in to comment.