]> BookStack Code Mirror - bookstack/blobdiff - app/References/ReferenceUpdater.php
Copying: Fixed issue with non-page links to page permalinks
[bookstack] / app / References / ReferenceUpdater.php
index b811fe868abca02982a8138b61b014a5f5df8126..42de72fde044620c6a3c5d3182bc3735ced3c269 100644 (file)
@@ -61,7 +61,7 @@ class ReferenceUpdater
 
                 $this->updateReferencesWithinEntity($new, $oldToEntity->getUrl(), $newToEntity->getUrl());
                 if ($newToEntity instanceof Page && $oldToEntity instanceof Page) {
-                    $this->updateReferencesWithinPage($newToEntity, $oldToEntity->getPermalink(), $newToEntity->getPermalink());
+                    $this->updateReferencesWithinEntity($new, $oldToEntity->getPermalink(), $newToEntity->getPermalink());
                 }
                 $reference->to_id = $newToEntity->id;
                 $reference->to_type = $newToEntity->getMorphClass();