fixup! handle slugs in persistent data manager

This commit is contained in:
Bence Pőcze 2023-05-07 01:35:48 +02:00
parent 769f3818f3
commit 1ef83ab57b
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -125,7 +125,8 @@ class PersistentDataManager implements IPersistentDataManager
} }
} else { } else {
if ($model instanceof ModelWithSlug) { if ($model instanceof ModelWithSlug) {
$modified['slug'] = $this->generateUniqueSlug($model, $modified['slug']); $slug = $model->generateSlug();
$modified['slug'] = $this->generateUniqueSlug($model, $slug);
} }
$modify->fill($modified); $modify->fill($modified);