diff --git a/src/PersistentData/PersistentDataManager.php b/src/PersistentData/PersistentDataManager.php index e3096d2..4bc99d3 100644 --- a/src/PersistentData/PersistentDataManager.php +++ b/src/PersistentData/PersistentDataManager.php @@ -115,7 +115,7 @@ class PersistentDataManager implements IPersistentDataManager if (count($modified) > 0) { if ($model instanceof ModelWithSlug && isset($modified['slug'])) { - $modified['slug'] = $this->generateUniqueSlug($model, $modified['slug']); + $diff['slug']['new'] = $modified['slug'] = $this->generateUniqueSlug($model, $modified['slug']); } $modify->setId($id);