fix module shop service
This commit is contained in:
parent
41671c2cd1
commit
d84f23c756
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user