Skip to content

Commit

Permalink
Check if field is shown on update (#77)
Browse files Browse the repository at this point in the history
* Check if field is shown on update

* Add missing controller checks to availableFields()
  • Loading branch information
dnwjn committed May 7, 2022
1 parent baedc96 commit 7e2e407
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/HasConditionalContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ public function availableFields(NovaRequest $request)
}

if ($controller instanceof CreationFieldController ||
$controller instanceof UpdateFieldController) {
$controller instanceof UpdateFieldController ||
$controller instanceof ResourceStoreController ||
$controller instanceof ResourceUpdateController) {

$fields = parent::availableFields($request);
$containers = $this->findAllContainers($fields);
Expand Down

0 comments on commit 7e2e407

Please sign in to comment.