From 066e5588b555a2be737a51d5cd1cd78783510a5b Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 21 Apr 2020 04:14:23 -0700 Subject: [PATCH] Fixed slugging in custom fields to no longer use old library --- app/Models/CustomField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;