mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixes #3681 - corrected fieldname for bulk asset delete
This commit is contained in:
parent
274f3511f5
commit
25e99194ce
|
@ -1222,8 +1222,10 @@ class AssetsController extends Controller
|
|||
public function postBulkDelete()
|
||||
{
|
||||
$this->authorize('delete', Asset::class);
|
||||
if (Input::has('bulk_edit')) {
|
||||
$assets = Asset::find(Input::get('bulk_edit'));
|
||||
|
||||
|
||||
if (Input::has('ids')) {
|
||||
$assets = Asset::find(Input::get('ids'));
|
||||
foreach ($assets as $asset) {
|
||||
$update_array['deleted_at'] = date('Y-m-d H:i:s');
|
||||
$update_array['assigned_to'] = null;
|
||||
|
|
|
@ -48,6 +48,7 @@ return array(
|
|||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this asset?',
|
||||
'error' => 'There was an issue deleting the asset. Please try again.',
|
||||
'nothing_updated' => 'No assets were selected, so nothing was deleted.',
|
||||
'success' => 'The asset was deleted successfully.'
|
||||
),
|
||||
|
||||
|
|
Loading…
Reference in a new issue