From 160c381abc88e382aa715a5554dd7233f3b938c0 Mon Sep 17 00:00:00 2001 From: stasbilay02 Date: Tue, 1 Oct 2024 12:25:07 +0300 Subject: [PATCH] fix create slug --- kernel/helpers/Slug.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/helpers/Slug.php b/kernel/helpers/Slug.php index ecd3432..423e37e 100644 --- a/kernel/helpers/Slug.php +++ b/kernel/helpers/Slug.php @@ -131,7 +131,7 @@ class Slug if ($tmpSlug === '') $tmpSlug = $slug; if ($model::where(['slug' => $tmpSlug])->exists()) { $tmpSlug = $slug . '-' . $id++; - $tmpSlug = Slug::recursiveCreateSlug($model, $slug, $id); + $tmpSlug = Slug::recursiveCreateSlug($model, $slug, $tmpSlug, $id); } return $tmpSlug; }