Skip to content

Commit a7c217d

Browse files
authored
Merge pull request #4292 from Laravel-Backpack/add-viewNamespace-alias-for-array-definition
add viewNamespace alias to array definition for consistency
2 parents d6e5c9d + bc7e809 commit a7c217d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/Library/CrudPanel/CrudFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct($options, $values, $logic, $fallbackLogic)
4040
$this->key = Str::camel($options['name']);
4141
$this->type = $options['type'] ?? $this->type;
4242
$this->label = $options['label'] ?? $this->crud()->makeLabel($this->name);
43-
$this->viewNamespace = $options['view_namespace'] ?? $this->viewNamespace;
43+
$this->viewNamespace = $options['viewNamespace'] ?? $options['view_namespace'] ?? $this->viewNamespace;
4444
$this->view = $this->type;
4545
$this->placeholder = $options['placeholder'] ?? '';
4646

0 commit comments

Comments
 (0)