Skip to content

Commit d5ce26f

Browse files
author
Jérémy ARGOUD
committed
refactor(import): use configuration
1 parent 63ce9cc commit d5ce26f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Http/Controllers/Admin/Traits/HasImportButton.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public function import(): View
3232

3333
$this->data['crud'] = $this->crud;
3434
$this->data['title'] = $this->crud->getTitle();
35-
$this->data['action'] = url($this->crud->route . '/import');
35+
$this->data['action'] = url(
36+
$this->crud->route . '/' . config('backpack-async-import-export.admin_import_route'),
37+
);
3638

3739
return view('backpack-async-export::pages.import', $this->data);
3840
}

0 commit comments

Comments
 (0)