Closed (fixed)
Project:
Display Suite
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2011 at 12:19 UTC
Updated:
20 Dec 2011 at 11:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
swentel commentedlooks like every sub option was actually missing. Can you test with the attached patch, should fix it.
Comment #2
swentel commentedI went ahead and committed this. I'll be adding tests for ds views integration at #1241936: Missing tests - in case there are still issues with this, add them to that issue.
Comment #4
tim.plunkettI had to decide between reopening this or #1241936: Missing tests and opening a new issue. Hope this is okay.
option_definition() has to know about everything, event the nested stuff.
I'm not sure about the difference between $options['grouping'] and $options['grouping_fieldset']['grouping'] though.
Comment #5
swentel commentedHmm didn't know about that 'contains' key, interesting. The 'grouping' key is the checkbox to disable/enable that feature, fieldset is anything underneath it.
This set of items is dynamic depending on the pager limit. So this is hardcoded now. I'll have a look at it this weekend to make it dynamic.
Comment #6
tim.plunkettViews is smart enough to not export default values, I just put everything into options_definition until the export looked clean. And yeah, I had a 5 item pager, makes sense.
Comment #7
swentel commentedSo whether we put 1 or 10 default items, that doesn't really matter there ?
Comment #8
tim.plunkettNo, to the contrary. If we put one there, but there are 10 in the options_form, the last 9 of them will go into every export. Perhaps we'd need to do some introspection into the pager during options_definition, but I don't know that it works like that.
Comment #9
tim.plunkettdereine suggested using a custom export option function. This works beautifully.
Comment #10
tim.plunkettUse 'bool' when appropriate.
Comment #11
swentel commentedSeems to be working fine. Committed and pushed, thanks!