-
-
Notifications
You must be signed in to change notification settings - Fork 7
AutoID changed after saving page #69
Description
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:
years:
label: Years
type: structure
sortBy: name asc
sortable: false
translate: false
fields:
name:
type: text
autoid:
type: hidden
translate: false
events:
label: Events
type: structure
sortBy: name asc
sortable: false
translate: false
fields:
name:
type: text
year:
type: select
options: query
query:
fetch: page.years.toStructure
text: '{{ structureItem.name }}'
value: '{{ structureItem.autoid }}'
autoid:
type: hidden
translate: false
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



