mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Merge pull request #11886 from sunflowerbofh/tmp-replace-patchwork-utf8
Tmp replace patchwork utf8
This commit is contained in:
commit
95b49f8deb
|
@ -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, '_');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue