A free open source IT asset/license management system
Update edit.blade.php (#8876)
ThoBurc40b8334fc62
diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.phpindex f047bab5d9..4d86a13f6c 100755--- a/resources/views/hardware/edit.blade.php+++ b/resources/views/hardware/edit.blade.php@@ -229,13 +229,13 @@var auto_tag = $("#asset_tag").val().replace(/[^\d]/g, '');var box_html = '';-+ const zeroPad = (num, places) => String(num).padStart(places, '0');// Check that we haven't exceeded the max number of asset fieldsif (x < max_fields) {if (auto_tag!='') {- auto_tag = parseInt(auto_tag) + parseInt(x);+ auto_tag = zeroPad(parseInt(auto_tag) + parseInt(x),auto_tag.length);} else {auto_tag = '';}