mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixed NaN when no asset tag is provided
This commit is contained in:
parent
ecb8204c3c
commit
c21524f240
|
@ -228,7 +228,13 @@
|
|||
|
||||
// Check that we haven't exceeded the max number of asset fields
|
||||
if (x < max_fields) {
|
||||
var auto_tag = parseInt(auto_tag) + parseInt(x);
|
||||
|
||||
if (auto_tag!='') {
|
||||
auto_tag = parseInt(auto_tag) + parseInt(x);
|
||||
} else {
|
||||
auto_tag = '';
|
||||
}
|
||||
|
||||
x++; //text box increment
|
||||
|
||||
box_html += '<span class="fields_wrapper">';
|
||||
|
|
Loading…
Reference in a new issue