Skip to content

Commit

Permalink
#8929 Replaced the exists() by isNotEmpty(), which is available for s…
Browse files Browse the repository at this point in the history
…tandard collections
  • Loading branch information
jonasraoni committed May 18, 2023
1 parent d1f78b4 commit ee54969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/migration/upgrade/v3_4_0/MergeLocalesMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function updateSingleValueLocaleEmailData(string $localevalue, string $ta
$hasExistingDefaultLocale = $allEmailTemplateData
->where('email_key', '=', $email_key)
->where('locale', '=', $defaultLocale)
->exists();
->isNotEmpty();

// if the dataset does not have the defaultLocale, then we can update to the $updatedLocale
if (!$hasExistingDefaultLocale) {
Expand Down

0 comments on commit ee54969

Please sign in to comment.