Panel doesn't update structure fields anymore

I can confirm this issue is still persisting in 2.2.3.

Steps to reproduce:

  1. Download starterkit
  2. Create a new blueprint for about.php with a structure field (see example below)
  3. Create a panel account and edit the /about page
  4. Add an item to the structure field and save the page
  5. Edit about.txt directly, changing the structure field value
  6. Refresh panel page β€” the data has not changed (logging out and back in again is the only way to see the change in the panel)

Example blueprint: site/blueprints/about.php

title: Page
pages: true
files: true
fields:
  title:
    label: Title
    type:  text
  text:
    label: Text
    type:  textarea
  team:
    label: Team
    type: structure
    fields:
      name:
        label: Name
        type: text
      email:
        label: Email
        type: text

I can confirm this.

Editing a structure field directly in the coresponding .text file doesn’t reflect in the panel until you log out and log in again.

There is already an issue on GitHub

I am running into the same issue now having done these steps:

  • Add some content via the panel to a structured field on my home computer
  • Commit to github
  • Few hours later synced repo from work computer
  • Panel does not have the updated informations, but the txt file does.
  • If I hit β€œSave” again in the panel, I’m afraid I may overwrite / lose the content previously added

Is there a work round for now? Like disabling the cache or so?

Have you tried to log out and log in to the panel again? This worked for me.

@flokosiol
Yes, it worked! Thank you! :smile:

1 Like