-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix $file::changeTemplate()
#6739
base: develop-minor
Are you sure you want to change the base?
Conversation
2757fe4
to
11fbc6e
Compare
@@ -367,6 +367,9 @@ public function testChangeTemplateMultilang() | |||
$modified = $file->changeTemplate('b'); | |||
|
|||
$this->assertSame('b', $modified->template()); | |||
$this->assertSame('b', $modified->content('default')->get('template')->value()); | |||
$this->assertSame('b', $modified->content('en')->get('template')->value()); | |||
$this->assertNull($modified->content('de')->get('template')->value()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bastianallgeier maybe you have an idea with your content class/caching knowledge why this still has a
when a non-default language should never have a template
field for a file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this stage, I believe that we merge it with the default language content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem is that the default language has been updated to b
, but the secondary language still seems to be stuck with a
.
Description
Summary of changes
Changelog
Fixes
Ready?
For review team