mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fixed slugging in custom fields to no longer use old library
This commit is contained in:
parent
c17106d1b3
commit
066e5588b5
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue