Fixes #3681 - corrected fieldname for bulk asset delete

This commit is contained in:
snipe 2017-06-20 14:41:30 -07:00
parent 274f3511f5
commit 25e99194ce
2 changed files with 5 additions and 2 deletions

View file

@ -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;

View file

@ -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.'
),