strapi / strapi

🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable and developer-first.
https://strapi.io
Other
60.61k stars 7.57k forks source link

CM : Back arrow issue >> Relation field cache is not invalidated when going "back" #20217

Open MarionLemaire opened 2 weeks ago

MarionLemaire commented 2 weeks ago

Bug report

Describe the bug

In CM, when creating a new entry for a collection type with Relation field, after saving, if I click the Back arrow to create a new entry, the Relation field is still filled-in with the infos from previous entry (all other fields are empty).

Loom here : https://www.loom.com/share/2a740320420f4e81a09927c614412530?sid=1cf33509-4824-4ad4-8a35-973ce62fef8b

Steps to reproduce the behavior

  1. Create a Collection type with a Relation field 2.Go to Content Manager
  2. Create a first entry with this CT, with one or many relations in the Relation field
  3. Save this entry (and/or publish it)
  4. Click Back arrow
  5. Check Relation field : still filled in with previous info

Expected behavior

Relation field should be cleared up and empty

Screenshots

Entry #1 saved and published : image

Entry #2 after clicking on Back arrow : image

Dashcam info here : https://app.dashcam.io/share/FU79RvPPj6PcV2obpIO9w

derrickmehaffy commented 2 weeks ago

I see you @MarionLemaire

Image

And I raise you

Image