1) Create a context that shows a Views block
2) disable view

The View will still appear when context conditions are met.

Comments

steven jones’s picture

Issue tags: +context-2.x-rc-blocker

This might be an issue with Views rather than Context.

Need to check.

steven jones’s picture

Title: Disabled view still appears » Disabled view block still appears
Project: Context » Views (for Drupal 7)
Version: 6.x-2.0-beta7 » 6.x-2.x-dev
Issue tags: -context-2.x-rc-blocker

This an issue with views.

Add a view, add a block display, add the block to a region, export the view, disable the view. Block still shows.

esmerel’s picture

Status: Active » Postponed (maintainer needs more info)

Fwiw, you can't disable the view unless it's one of the defaults - are you deleting the view?

esmerel’s picture

Status: Postponed (maintainer needs more info) » Active

Nevermind - I confirmed it using the archive view, and merlin says that the correct flag isn't being checked on render, so it's a bug

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new753 bytes

Thats an easy patch :)

merlinofchaos’s picture

I glanced at this yesterday, it seems like it would be *best* to put the check inside view::access() itself. Any disabled view is automatically not accessible, no matter the source yes?

We could then actually remove a bunch of other enabled/disabled checks.

dawehner’s picture

This makes more sence, definitive.

dawehner’s picture

Status: Needs review » Needs work

So needs work.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new497 bytes

Update

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to all branches. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.