Skip to content

Commit 9e5f6d6

Browse files
committed
Improve multi-asset create when using numeric prefixes to asset_tags
1 parent ab3b655 commit 9e5f6d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/hardware/edit.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function user_add(status_id) {
301301
302302
e.preventDefault();
303303
304-
var auto_tag = $("#asset_tag").val().replace(/[^\d]/g, '');
304+
var auto_tag = $("#asset_tag").val().replace(/^{{ preg_quote(App\Models\Setting::getSettings()->auto_increment_prefix) }}/g, '');
305305
var box_html = '';
306306
const zeroPad = (num, places) => String(num).padStart(places, '0');
307307

0 commit comments

Comments
 (0)