Skip to content

Commit 6a930b9

Browse files
fixes the problem where fields are being missed when u are using the … (#33)
* fixes the problem where fields are being missed when u are using the custom fieldsForDetail function. * changed self:: to $this Because of override possibility of the fieldsMethod method
1 parent c9e3c35 commit 6a930b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/HasConditionalContainer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ public function availableFields(NovaRequest $request)
141141

142142
}
143143

144-
$allFields = $this->fields($request);
144+
$method = $this->fieldsMethod($request);
145+
$allFields = $this->{$method}($request);
145146
$containers = $this->findAllContainers($allFields);
146147
$expressionsMap = $containers->flatMap->expressions->map(function ($expression) {
147148
return is_callable($expression) ? $expression() : $expression;

0 commit comments

Comments
 (0)