Problem/Motivation

User should be able to use '0' in title field.
When user fills '0', the system responds unrelated error message.

Steps to reproduce

In context add/edit form,

Fill '0' in title field
Fill any concrete value in URL field

Save form and we will get error message: 'Token field is required'

Proposed resolution

Use isset() or strlen() instead of empty().

Remaining tasks

User interface changes

No.

API changes

No.

Data model changes

No.

Comments

smori1983 created an issue. See original summary.

smori1983’s picture

To initialize form with saved '0',

\Drupal\context_breadcrumb\Plugin\ContextReaction\Breadcrumb::buildConfigurationForm() should be fixed in the same time.

  • zipme_hkt committed 43973cd1 on 2.0.x
    #3214484 '0' should be accepted in title field
    
zipme_hkt’s picture

Status: Active » Fixed
zipme_hkt’s picture

Status: Fixed » Closed (fixed)