fixup! handle slugs in persistent data manager
This commit is contained in:
parent
769f3818f3
commit
1ef83ab57b
@ -125,7 +125,8 @@ class PersistentDataManager implements IPersistentDataManager
|
||||
}
|
||||
} else {
|
||||
if ($model instanceof ModelWithSlug) {
|
||||
$modified['slug'] = $this->generateUniqueSlug($model, $modified['slug']);
|
||||
$slug = $model->generateSlug();
|
||||
$modified['slug'] = $this->generateUniqueSlug($model, $slug);
|
||||
}
|
||||
|
||||
$modify->fill($modified);
|
||||
|
Loading…
Reference in New Issue
Block a user