mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Fixed #4951 - updating asset location in bulk edit
This commit is contained in:
parent
d86fb098a8
commit
08d129c2ea
|
@ -1130,12 +1130,14 @@ class AssetsController extends Controller
|
||||||
if ($request->has('warranty_months')) {
|
if ($request->has('warranty_months')) {
|
||||||
$update_array['warranty_months'] = $request->input('warranty_months');
|
$update_array['warranty_months'] = $request->input('warranty_months');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($request->has('rtd_location_id')) {
|
if ($request->has('rtd_location_id')) {
|
||||||
$update_array['rtd_location_id'] = $request->input('rtd_location_id');
|
$update_array['rtd_location_id'] = $request->input('rtd_location_id');
|
||||||
if (($request->has('update_real_loc'))
|
if (($request->has('update_real_loc'))
|
||||||
&& (($request->input('update_real_loc')) == '1'))
|
&& (($request->input('update_real_loc')) == '1'))
|
||||||
{
|
{
|
||||||
$update_array['location_id'] = $request->input('location_id');
|
$update_array['location_id'] = $request->input('rtd_location_id');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,8 +62,8 @@
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label for="activated">
|
<label for="activated">
|
||||||
{{ Form::radio('update_real_loc', '', true) }} Update default location AND actual location <br>
|
{{ Form::radio('update_real_loc', '1', true) }} Update default location AND actual location <br>
|
||||||
{{ Form::radio('update_real_loc', '1', Input::old('activated')) }} Only update default location<br>
|
{{ Form::radio('update_real_loc', '0', Input::old('activated')) }} Only update default location<br>
|
||||||
|
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue