Add default purchase date for csv import to prevent error when undefined
This commit is contained in:
@@ -860,6 +860,7 @@ if (isset($_POST["import_assets_csv"])) {
|
|||||||
// Default variables (if undefined)
|
// Default variables (if undefined)
|
||||||
$description = $type = $make = $model = $serial = $os = '';
|
$description = $type = $make = $model = $serial = $os = '';
|
||||||
$contact_id = $location_id = 0;
|
$contact_id = $location_id = 0;
|
||||||
|
$purchase_date = '0000-00-00';
|
||||||
|
|
||||||
$duplicate_detect = 0;
|
$duplicate_detect = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user