Problem/Motivation
I have some Views that I have disabled and when I export them or build Features for them (thus, exporting them!) the feature always sets disabled to false. I need them to export with the settings I set for them.
Steps to Reproduce
Build a View. Set the View to Disabled. Export the View, note that it exports with:
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
...regardless of whether the View is enabled or disabled.
Proposed resolution
Make Views export write the actual disabled setting for each View.
Remaining tasks
Patch needed
User interface changes
None
API changes
None
I did not find any when searching through the CTools or Views issue queues, but I found #1959550: Features does not export enabled/disabled state a View in the Features queue.
Comments
Comment #1
franksj commentedIncluding patch to check disabled and include the appropriate setting in the export.
Comment #2
kerasai commentedLets see what the test bot says.
Comment #3
kerasai commentedComment #4
chris matthews commentedThe 3 year old patch in #1 to view.inc does not apply to the latest views 7.x-3.x-dev and if still relevant needs to be rerolled.
Comment #5
andrew answer commentedPatch rerolled.