Skip to content

Commit

Permalink
Merge pull request #15491 from uberbrady/numeric_prefixes_add_multipl…
Browse files Browse the repository at this point in the history
…e_assets

[Fixes fd-43940] Improve multi-asset create when using numeric prefixes to asset_tags
  • Loading branch information
snipe authored Sep 17, 2024
2 parents 6c996b7 + 9e5f6d6 commit 154d5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/hardware/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function user_add(status_id) {
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');
Expand Down

0 comments on commit 154d5d8

Please sign in to comment.