From 05a4b57fb1de348e8ccab49f2e492c789332a277 Mon Sep 17 00:00:00 2001 From: Cam Findlay Date: Mon, 29 Jun 2015 19:17:53 +1200 Subject: [PATCH] FIX Blog tag migration is per Blog --- code/compat/pages/BlogEntry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/compat/pages/BlogEntry.php b/code/compat/pages/BlogEntry.php index 0724396..7068752 100644 --- a/code/compat/pages/BlogEntry.php +++ b/code/compat/pages/BlogEntry.php @@ -38,7 +38,7 @@ class BlogEntry extends BlogPost implements MigratableObject { //Migrate comma separated tags into BlogTag objects. foreach($this->TagNames() as $tag) { - $existingTag = BlogTag::get()->filter('Title', $tag); + $existingTag = BlogTag::get()->filter(array('Title' => $tag, 'BlogID' => $this->ParentID)); if($existingTag->count()) { //if tag already exists we will simply add it to this post. $tagObject = $existingTag->First();