Merge pull request #11886 from sunflowerbofh/tmp-replace-patchwork-utf8

Tmp replace patchwork utf8
This commit is contained in:
snipe 2022-09-28 10:32:07 -07:00 committed by GitHub
commit 95b49f8deb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -338,7 +338,7 @@ class CustomField extends Model
$id = $this->id ? $this->id : 'xx'; $id = $this->id ? $this->id : 'xx';
if (! function_exists('transliterator_transliterate')) { if (! function_exists('transliterator_transliterate')) {
$long_slug = '_snipeit_'.str_slug(\Polyfill\Mbstring::mb_convert_encoding(trim($name)), '_'); $long_slug = '_snipeit_'.str_slug(mb_convert_encoding(trim($name),"UTF-8"), '_');
} else { } else {
$long_slug = '_snipeit_'.Utf8Slugger::slugify($name, '_'); $long_slug = '_snipeit_'.Utf8Slugger::slugify($name, '_');
} }