Skip to content

Commit 86e8ed7

Browse files
committed
leave defaultLocale assignment to next getDefault() call
1 parent f0da7e3 commit 86e8ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: models/Locale.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function makeDefault()
100100
$this->newQuery()->where('id', $this->id)->update(['is_default' => true]);
101101
$this->newQuery()->where('id', '<>', $this->id)->update(['is_default' => false]);
102102

103-
static::$defaultLocale = $this;
103+
self::$defaultLocale = null;
104104
Cache::forget('winter.translate.defaultLocale');
105105
}
106106

0 commit comments

Comments
 (0)