verbb / vizy

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

Length check returns 0 #38

Closed magnusskogen closed 3 years ago

magnusskogen commented 3 years ago

Description Adding the | length twig filter returns 0, even if the field contains a value.

Steps to reproduce

  1. Add content to a field inside a Vizy block.
  2. Check length in template: {{ node.fieldName | length }}

Additional info

Additional context

engram-design commented 3 years ago

Should be 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.2",
  "...": "..."
}

Then run composer update.

engram-design commented 3 years ago

Fixed in 1.0.3