fix deprecation on asset obs get unaccept report to populate

This commit is contained in:
Godfrey M
2025-01-06 11:26:45 -08:00
parent 331fbb66bd
commit bb03e00279
3 changed files with 37 additions and 20 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ class AssetObserver
{
if ($settings = Setting::getSettings()) {
$tag = $asset->asset_tag;
$prefix = $settings->auto_increment_prefix;
$prefix = (string)($settings->auto_increment_prefix ?? '');
$number = substr($tag, strlen($prefix));
// IF - auto_increment_assets is on, AND (there is no prefix OR the prefix matches the start of the tag)
// AND the rest of the string after the prefix is all digits, THEN...