Closed (fixed)
Project:
Project issue tracking
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
30 Jan 2014 at 22:09 UTC
Updated:
18 Feb 2014 at 23:20 UTC
Jump to comment: Most recent

Comments
Comment #1
webchickComment #2
drummThe fieldsets remember the collapsed state for each browser in localStorage.
#collapsed actually didn't change, the field group config is still set to collapsible, not collapsed. The change is new JS added by #2163197: Allow fieldsets to be persistent and save focus when AJAXing. This JS, http://drupalcode.org/project/project_issue.git/blob/refs/heads/7.x-2.x:..., has:
This should also store if the fieldset was closed in localStorage, so the "otherwise section" can do nothing.
Comment #3
drummComment #4
tim.plunkettBased on that code, it seems to default to closed the first time you hit this page with empty local storage.
Once you edit the first time, you get angry, uncollapse it, and never hit it again.
Comment #5
webchickOh, ok, I didn't realize this was all JS stuff. But yeah, that logic needs to
be inversedremove the "else" condition like you said.And then as part of #2159813: Display parts of the issue edit form instead of the comment form on issue pages, we need to add a check for "are we on the front-end or back-end form" when determining the default state.
Comment #6
jhodgdonI just filed a duplicate of this issue.
I'd like to point out that "never hit it again" only works as long as you stay logged in to d.o. I've had to hit it again every day since this was deployed.
Comment #7
drummComment #8
drummhttp://drupalcode.org/project/project_issue.git/commit/5d8af8b leaves the fieldsets alone if localstorage is not yet defined for the fieldset.
This will be deployed within the next hour.