Improve multi-asset create when using numeric prefixes to asset_tags

This commit is contained in:
Brady Wetherington 2024-09-11 15:45:01 +01:00
parent ab3b655312
commit 9e5f6d656a

View file

@ -301,7 +301,7 @@
e.preventDefault(); 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 = ''; var box_html = '';
const zeroPad = (num, places) => String(num).padStart(places, '0'); const zeroPad = (num, places) => String(num).padStart(places, '0');