Skip to content

Conversation

@Gitesh307
Copy link
Contributor

Fixes #7508

When CO_CREATE_PREP_=true, v7.11 started rendering every existing preparation row expanded in the Collection Object form because the FormTable component seeded its isExpanded state based solely on that preference flag for all preparations. The fix restores the intended behavior by only defaulting rows to expanded if the resource is both a preparation and newly created, keeping existing preparations collapsed while still auto-expanding ones that are added during the current session.

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list

Testing instructions

  • Verify that toggling CO_CREATE_PREP_(CollectionID)=true in remote preferences leaves existing preparations collapsed while newly created preparations still open automatically.

@specifysoftware
Copy link

This pull request has been mentioned on Specify Community Forum. There might be relevant details there:

https://discourse.specifysoftware.org/t/collapse-grid-view-by-default/2786/15

@CarolineDenis CarolineDenis added this to the 7.12.0 milestone Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋Back Log

Development

Successfully merging this pull request may close these issues.

Preparations always expanded when CO_CREATE_PREP is set to true

4 participants