mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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
|
// Check that we haven't exceeded the max number of asset fields
|
||||||
if (x < max_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
|
x++; //text box increment
|
||||||
|
|
||||||
box_html += '<span class="fields_wrapper">';
|
box_html += '<span class="fields_wrapper">';
|
||||||
|
|
Loading…
Reference in a new issue