Allow user to specify null for calculation or explicit on bulk edit

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2024-11-10 18:04:13 +00:00
parent 357ef7e375
commit 47b2cdb846
3 changed files with 17 additions and 3 deletions
@@ -321,7 +321,11 @@ class BulkAssetsController extends Controller
if ($request->input('null_asset_eol_date')=='1') {
$this->update_array['asset_eol_date'] = null;
$this->update_array['eol_explicit'] = 1;
// If they are nulling the EOL date to allow it to calculate, set eol explicit to 0
if ($request->input('calc_eol')=='1') {
$this->update_array['eol_explicit'] = 0;
}
}