snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

create asset model with Empty String model NO. will not match when import custom fields csv file without 'Model Number' column

Open dovefi opened this issue 9 years ago • 5 comments

i use snipeit v4.0.15 i have created a asset model which has no model number, and create a custom field name 'inner_ip', when i import custom field csv file, i did not gave a model number culumn in this file , it import success, but the inner_ip column never show a value. only if i add model number column and gave it an empty string ,import angin ,the inner_ip show. to solve this question,i check the databases ,i found out what is going on , when i created asset model and did not gave a model NO . it insert database model NO. with empty string. but when i import custom fields whitout 'Mode Number' column i will insert model NO. with null .they did not match . so is this a bug ?? because i have read the document https://snipe-it.readme.io/docs/importing , the Model Number column is not necessary。

dovefi avatar Nov 01 '17 03:11 dovefi

@dmeltzer can you take a look at this?

snipe avatar Nov 01 '17 03:11 snipe

i use PHP 5.6.x and mysql 5.6

dovefi avatar Nov 01 '17 09:11 dovefi

@dmeltzer ping? (I know you're busy - I'm just hesitant to mess with the importer too much when you're not around.)

snipe avatar Nov 22 '17 05:11 snipe

Hi I tried to reproduce this in a few different ways and failed. How are you creating the asset model initially, through the ui or importing? I did PR a related fix, so it might have fixed this too..

mnemonicly avatar Nov 24 '17 01:11 mnemonicly

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Feb 10 '18 15:02 stale[bot]