import path fixed
This commit is contained in:
parent
fea51c363c
commit
813ebfe600
@ -358,8 +358,17 @@ abstract class DocumentIndex extends Base
|
|||||||
|
|
||||||
$route = $this->getRouteFromConfig($type, 'import');
|
$route = $this->getRouteFromConfig($type, 'import');
|
||||||
|
|
||||||
|
$alias = config('type.' . $type . '.alias');
|
||||||
|
$group = config('type.' . $type . '.group');
|
||||||
|
|
||||||
|
if (empty($group) && !empty($alias)){
|
||||||
|
$group = $alias;
|
||||||
|
} else if (empty($group) && empty($alias)) {
|
||||||
|
$group = 'sales';
|
||||||
|
}
|
||||||
|
|
||||||
$importRouteParameters = [
|
$importRouteParameters = [
|
||||||
'group' => config('type.' . $type . '.group'),
|
'group' => $group,
|
||||||
'type' => config('type.' . $type . '.route.prefix'),
|
'type' => config('type.' . $type . '.route.prefix'),
|
||||||
'route' => ($route) ? $route : 'invoices.import',
|
'route' => ($route) ? $route : 'invoices.import',
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user