verbb / vizy

A flexible visual editor for Craft CMS
Other
44 stars 8 forks source link

Deactivated Matrix blocks is still visible #67

Closed magnusskogen closed 3 years ago

magnusskogen commented 3 years ago

Description Deactivated Matrix blocks is not hidden in frontend.

Steps to reproduce

  1. Add a Matrix field to Vizy.
  2. Add a block, and deactivate it.
  3. View article in any browser. The block is visible, even if it was deactivated.

Additional info

Additional context

magnusskogen commented 3 years ago

Seems like deactivating overall is not working. Deactivated Vizy-blocks appears as well.

engram-design commented 3 years ago

I can't seem to replicate the Matrix disabled block behaviour, but disabled Vizy blocks are certainly accessible when querying via .all() on the collection. This shouldn't be the case. Fixed for the next release. To get the fix early, change your verbb/vizy requirement in composer.json to:

"require": {
  "verbb/vizy": "dev-craft-3 as 1.0.5",
  "...": "..."
}

Then run composer update.

engram-design commented 3 years ago

Fixed in 1.0.6