Skip to content

Commit

Permalink
Fix an index error in Nova 2.5.0 where the rules-set array requires a…
Browse files Browse the repository at this point in the history
… key fields attribute #86
  • Loading branch information
wize-wiz committed Oct 17, 2019
1 parent 85b3e72 commit 2e46b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NovaDependencyContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function areDependenciesSatisfied(NovaRequest $request)
*/
protected function getSituationalRulesSet(NovaRequest $request, string $propertyName = 'rules')
{
$fieldsRules = [];
$fieldsRules = [$this->attribute => []];
if (!$this->areDependenciesSatisfied($request)
|| !isset($this->meta['fields'])
|| !is_array($this->meta['fields'])) {
Expand Down

0 comments on commit 2e46b5a

Please sign in to comment.