generated unique slug should be part of diff #20

Merged
bence merged 1 commits from bugfix/generated-unique-slug-should-be-part-of-diff into master 2023-05-28 15:45:59 +02:00
Showing only changes of commit 346b1a0ca9 - Show all commits

View File

@ -115,7 +115,7 @@ class PersistentDataManager implements IPersistentDataManager
if (count($modified) > 0) { if (count($modified) > 0) {
if ($model instanceof ModelWithSlug && isset($modified['slug'])) { 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); $modify->setId($id);