Skip to content

Commit

Permalink
leave defaultLocale assignment to next getDefault() call
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Apr 25, 2024
1 parent f0da7e3 commit 86e8ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function makeDefault()
$this->newQuery()->where('id', $this->id)->update(['is_default' => true]);
$this->newQuery()->where('id', '<>', $this->id)->update(['is_default' => false]);

static::$defaultLocale = $this;
self::$defaultLocale = null;
Cache::forget('winter.translate.defaultLocale');
}

Expand Down

0 comments on commit 86e8ed7

Please sign in to comment.