-
-
Notifications
You must be signed in to change notification settings - Fork 6
fix(#94): Update page using latest version in clean command #99
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
Conversation
|
@afbora When I run this code I get an error in my multi language project. I do not have translated versions for most files yet... I removed this comment because first I thought I made a mistake. But it still appears. If |
|
@morja I tried your steps and I can't still reproduce the issue. Works for me great. |
|
@afbora I created a test with multiple variations and they confirm the report I made before when run without the With my real project, if I use Reproduce:
With the version without the |
|
Here is my test file: https://gitlab.com/-/snippets/4905286 For the test to run, you'll need to add and install kirby via composer I then call it like this: Not sure if this is the way to do it. Just wanted to get it running quickly... |
|
@morja Thank you for great helping to tracking the issue. I've one more shot. Could you test it, please? 🙏 |
|
@afbora thanks for this version. It now works for the multilanguage tests, but fails for single language site setup. but this also fails. |
|
I found a solution that works for me: |
|
I have to ask @bastianallgeier here. Should we still use the version system in a single language? |
|
This also works for me: |
|
What also works is: and then call the method with |
|
@morja According to the core codes, I think you're right 👍I've applied the changes. |
|
@afbora this again fails my tests. The |
|
Sorry @morja, I missed that. You're completely right 👍I've pushed the commit. @bastianallgeier Ready to review. |
127e446 to
ec976a3
Compare
bastianallgeier
left a comment
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.
This looks good to me. I've added a couple ideas to another branch and will create a PR In a minute, but this one can definitely be merged.
I think @morja's issue in #94 (comment) here about related with new versions system. I've used
->version('latest')and seems it's working. To be honest I'm not sure it's correct solution or not. What do you think about that? @bastianallgeier @lukasbestle @distantnativeFixes #94