Skip to content
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

When I add a new page layout for a module with a formula in a field, the pages disappear #2054

Open
1 task done
lennyhorstink2 opened this issue Jan 7, 2025 · 1 comment

Comments

@lennyhorstink2
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Version of Corteza

2023.9.8 and 2024.9.0

Current Behavior

In a specific case pages in a namespace disappear.

Expected Behavior

No response

Steps To Reproduce

  1. Create a new module called Test.
  2. Add a “Select / dropdown” field called "select". Add the values: "option1", "option2"
  3. Add a "Number input" field called "number".
  4. add a third field called "formula_field" of type “Text input”. Add the formula: select == "option1" && number == 1 ? "match" : "no match".
  5. Create a record page for the modult and add the fields.
  6. Create some records with values. Check if the formula field works by having a record with option1 selected and 1 as the value in the number field.
  7. Go back to the page editor.
  8. Now create new layouts (one for a match and one for a no match).
    • Clone without references
    • add a unique title
    • add a unique handle
    • use the conditions:
      • record.values.formula_field == "match"
      • record.values.formula_field == "no match"
  9. Check out the records. The different layouts should work now.
  10. Close the browser entirely.
  11. Open the browser and go back to Corteza.
  12. Open the namespace and you can see all the pages are gone.

Environment and versions

No response

Anything else?

No response

@tjerman
Copy link
Member

tjerman commented Jan 8, 2025

Do we know what browsers are being used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants