Skip to content

A free open source IT asset/license management system

Fixed slugging in custom fields to no longer use old library

snipe066e5588b555
diff --git a/app/Models/CustomField.php b/app/Models/CustomField.php
index 5979e614c9..f3ef7bc2bf 100644
--- a/app/Models/CustomField.php
+++ b/app/Models/CustomField.php
@@ -336,7 +336,7 @@ class CustomField extends Model
if (!function_exists('transliterator_transliterate')) {
$long_slug = '_snipeit_' . str_slug(\Patchwork\Utf8::utf8_encode(trim($name)), '_');
} else {
- $long_slug = '_snipeit_' . Utf8Slugger::slugify($name, '_');
+ $long_slug = '_snipeit_' . str_slug($name, '_');
}
return substr($long_slug, 0, 50) . '_' . $id;