From d84f23c756fd56c38fb4d50533bdd151e8834d4b Mon Sep 17 00:00:00 2001 From: Kavalar Date: Fri, 8 Nov 2024 15:33:27 +0300 Subject: [PATCH] fix module shop service --- app/modules/module_shop/services/ModuleShopService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/module_shop/services/ModuleShopService.php b/app/modules/module_shop/services/ModuleShopService.php index d7fcd88..bd34262 100644 --- a/app/modules/module_shop/services/ModuleShopService.php +++ b/app/modules/module_shop/services/ModuleShopService.php @@ -22,7 +22,7 @@ class ModuleShopService extends ModuleService $model->status = $form_model->getItem("status"); $model->path_to_archive = $form_model->getItem("path_to_archive"); $model->dependence = $form_model->getItem("dependence"); - $model->slug = Slug::url_slug($model->name, ['transliterate' => true, 'lowercase' => true]); + $model->slug = $form_model->getItem("slug"); if ($model->save()) { return $model; @@ -40,7 +40,7 @@ class ModuleShopService extends ModuleService $model->status = $form_model->getItem("status"); $model->path_to_archive = $form_model->getItem("path_to_archive"); $model->dependence = $form_model->getItem("dependence"); - $model->slug = Slug::url_slug($model->name, ['transliterate' => true, 'lowercase' => true]); + $model->slug = $form_model->getItem("slug"); if ($model->save()) { return $model;