mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Refactor steps controller (#3627)
This commit is contained in:
parent
eea9015cd3
commit
d36cb2fafa
@ -160,7 +160,7 @@ class StepsController extends BaseController
|
||||
->force(array_key_exists('force', $company))
|
||||
->company($company['id'])
|
||||
->endpoint(session('MIGRATION_ENDPOINT'))
|
||||
->companyKey($company['key'])
|
||||
->companyKey($request->account_key)
|
||||
->start();
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
<h4>Awesome! Please select the company you would like to apply migration.</h4>
|
||||
<form action="/migration/companies" method="post" id="auth-form">
|
||||
{{ csrf_field() }}
|
||||
<input type="hidden" name="account_key" value="{{ auth()->user()->account->account_key }}">
|
||||
|
||||
@foreach($companies as $company)
|
||||
<div class="form-check">
|
||||
@ -24,7 +25,6 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="checkbox" name="companies[{{ $company->id }}][force]">
|
||||
<input type="hidden" name="companies[{{ $company->id }}][key]" value="{{ $company->company_key }}">
|
||||
<label for="force">Force migration</label>
|
||||
<small>* All current company data will be wiped.</small>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user