3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-15 16:45:34 +00:00

Merge pull request #15491 from uberbrady/numeric_prefixes_add_multiple_assets

[Fixes fd-43940] Improve multi-asset create when using numeric prefixes to asset_tags
This commit is contained in:
snipe
2024-09-17 23:40:25 +01:00
committed by GitHub

View File

@ -301,7 +301,7 @@
e.preventDefault();
var auto_tag = $("#asset_tag").val().replace(/[^\d]/g, '');
var auto_tag = $("#asset_tag").val().replace(/^{{ preg_quote(App\Models\Setting::getSettings()->auto_increment_prefix) }}/g, '');
var box_html = '';
const zeroPad = (num, places) => String(num).padStart(places, '0');