Closed (fixed)
Project:
Search configuration
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2016 at 12:41 UTC
Updated:
4 Sep 2016 at 03:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joyceg commentedAdding the required patch.
Comment #3
joyceg commentedComment #4
heykarthikwithuChecked the patch, works fine adds Collapsible feature for the fields as in the images and this can be pushed.
Comment #5
alan d. commentedNote, personally I would just use "#open' => FALSE," as having these open will push the submit button down the page. but I don't care enough to flag this as needs work ;)
Comment #6
joyceg commented@Alan,
#open is actually assigned the value false in the patch #2.
Comment #7
alan d. commentedhehe, this was based on my decision on D7. Personally I now consider that scrolling down is worse than clicking once to open the fieldset :)
Looking at the code from D7 > D8, starting with the logic I used that was wrong, if configured, open fieldset by default
It should have been
Or more correctly, using array() which is the data type normally returned, and the cast isn't required:
i.e. variable_get('search_config') was one of the variable records that contained multiple values, and now these are in config/schema/search_config.settings.schema.yml, so
variable_get('search_config', FALSE), now\Drupal::config('search_config.node')->get('search_config'), was never a single value setting Boolean value, and was probably incorrectly created via the automated upgrade.So suggesting that you could remove config/install/search_config.node.yml & config/schema/search_config.node.schema.yml completely and to simply set #open => FALSE.
Comment #8
naveenvalechaCommitted and pushed to 8.x-1.x