fix module shop service

This commit is contained in:
Kavalar 2024-11-08 15:33:27 +03:00
parent 41671c2cd1
commit d84f23c756

View File

@ -22,7 +22,7 @@ class ModuleShopService extends ModuleService
$model->status = $form_model->getItem("status"); $model->status = $form_model->getItem("status");
$model->path_to_archive = $form_model->getItem("path_to_archive"); $model->path_to_archive = $form_model->getItem("path_to_archive");
$model->dependence = $form_model->getItem("dependence"); $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()) { if ($model->save()) {
return $model; return $model;
@ -40,7 +40,7 @@ class ModuleShopService extends ModuleService
$model->status = $form_model->getItem("status"); $model->status = $form_model->getItem("status");
$model->path_to_archive = $form_model->getItem("path_to_archive"); $model->path_to_archive = $form_model->getItem("path_to_archive");
$model->dependence = $form_model->getItem("dependence"); $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()) { if ($model->save()) {
return $model; return $model;