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))
|
->force(array_key_exists('force', $company))
|
||||||
->company($company['id'])
|
->company($company['id'])
|
||||||
->endpoint(session('MIGRATION_ENDPOINT'))
|
->endpoint(session('MIGRATION_ENDPOINT'))
|
||||||
->companyKey($company['key'])
|
->companyKey($request->account_key)
|
||||||
->start();
|
->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<h4>Awesome! Please select the company you would like to apply migration.</h4>
|
<h4>Awesome! Please select the company you would like to apply migration.</h4>
|
||||||
<form action="/migration/companies" method="post" id="auth-form">
|
<form action="/migration/companies" method="post" id="auth-form">
|
||||||
{{ csrf_field() }}
|
{{ csrf_field() }}
|
||||||
|
<input type="hidden" name="account_key" value="{{ auth()->user()->account->account_key }}">
|
||||||
|
|
||||||
@foreach($companies as $company)
|
@foreach($companies as $company)
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
@ -24,7 +25,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="checkbox" name="companies[{{ $company->id }}][force]">
|
<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>
|
<label for="force">Force migration</label>
|
||||||
<small>* All current company data will be wiped.</small>
|
<small>* All current company data will be wiped.</small>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user