Skip to content

Commit 7e2e407

Browse files
authored
Check if field is shown on update (#77)
* Check if field is shown on update * Add missing controller checks to availableFields()
1 parent baedc96 commit 7e2e407

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/HasConditionalContainer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ public function availableFields(NovaRequest $request)
105105
}
106106

107107
if ($controller instanceof CreationFieldController ||
108-
$controller instanceof UpdateFieldController) {
108+
$controller instanceof UpdateFieldController ||
109+
$controller instanceof ResourceStoreController ||
110+
$controller instanceof ResourceUpdateController) {
109111

110112
$fields = parent::availableFields($request);
111113
$containers = $this->findAllContainers($fields);

0 commit comments

Comments
 (0)