diff --git a/src/Actions/DuplicateEntry.php b/src/Actions/DuplicateEntry.php index 2cf370f25cf..d5b063a5180 100644 --- a/src/Actions/DuplicateEntry.php +++ b/src/Actions/DuplicateEntry.php @@ -162,7 +162,7 @@ protected function generateTitleAndSlug(Entry $entry, $attempt = 1) $slug .= '-'.$attempt; // If the slug we've just built already exists, we'll try again, recursively. - if ($entry->collection()->queryEntries()->where('locale', $entry->locale())->where('slug', $slug)->count()) { + if ($entry->collection()->queryEntries()->where('site', $entry->locale())->where('slug', $slug)->count()) { [$title, $slug] = $this->generateTitleAndSlug($entry, $attempt + 1); }