A free open source IT asset/license management system
Fixed NaN when no asset tag is provided
snipec21524f2403e
diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.phpindex 035edf6f69..24e87bbec8 100755--- a/resources/views/hardware/edit.blade.php+++ b/resources/views/hardware/edit.blade.php@@ -228,7 +228,13 @@// Check that we haven't exceeded the max number of asset fieldsif (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 incrementbox_html += '<span class="fields_wrapper">';