You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
So basically I am using the structure years to populate the options which are available in the events structure. In reality these two structures are on two different tabs, but on the same page. And I think this is part of the problem since the blueprint example is exactly the same, but on two different pages.
So, when I add a year to my years structure and save the page everything looks fine and the content file gets the new values with an autoid:
However, after changing anything else on the same page and then saving the page again (without reloading) the autoid of the previously saved year will be changed behind the scenes. This causes some issues when trying to use the newly created year in the events structure on the same page. A newly created year will be available to be selected as an option, and it will look perfectly when saving the events structure.
But after reloading the page, the year will be empty since the autoid of the year has been changed. I have no idea why the autoid is changing once it has been previously saved. Is there a way to prevent the autoid from being updated/changed once it has been saved?
The autoid has magically changed:
The problem will not occur whenever I do the following:
add the year to the years structure
save the page
reload the panel
add an entry with the newly added year to the events structure
save the page
The text was updated successfully, but these errors were encountered:
thanks for the detailed issue report. i will take a closer look asap.
does your blueprint have an autoid field at root level. like $page->autoid()?
because if i remember correctly the index depends on each page having that. otherwise it might think the page has not been indexed yet and assign new values. so maybe you can not just have autoids in structures but you need one for the page object as well. BUT i need to verify that.
@bnomei Thanks for looking into it! It does have an autoid on root level. I can see it in the content folder .txt file (Autoid: osldmy9g) and I can also var_dump it in the template.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am not sure what's going on here and if this is expected behaviour. I have a blueprint with basically the following fields configuration:
So basically I am using the structure years to populate the options which are available in the events structure. In reality these two structures are on two different tabs, but on the same page. And I think this is part of the problem since the blueprint example is exactly the same, but on two different pages.
So, when I add a year to my years structure and save the page everything looks fine and the content file gets the new values with an autoid:
However, after changing anything else on the same page and then saving the page again (without reloading) the autoid of the previously saved year will be changed behind the scenes. This causes some issues when trying to use the newly created year in the events structure on the same page. A newly created year will be available to be selected as an option, and it will look perfectly when saving the events structure.
But after reloading the page, the year will be empty since the autoid of the year has been changed. I have no idea why the autoid is changing once it has been previously saved. Is there a way to prevent the autoid from being updated/changed once it has been saved?
The autoid has magically changed:
The problem will not occur whenever I do the following:
The text was updated successfully, but these errors were encountered: