distantnative / search-for-kirby

Kirby 3 plugin for adding a search index (sqlite or Algolia).
43 stars 3 forks source link

TypeError in site-context #25

Closed hannesherold closed 3 years ago

hannesherold commented 4 years ago

Describe the bug

When a field of type: text is available in site.yml, trying to save changes to that field in the panel throws an error:

Exception: TypeError
Argument 1 passed to Kirby\Search\Index::update() must be of the type string, null given, called in /public/site/plugins/search/src/config/hooks.php on line 16

Steps to reproduce

  1. Install the plugin
  2. Create a standard text field in site.yml
  3. Type some text into that field using the panel
  4. Save changes

Additional context

Error seems to occur in site-context only.

Specifications

distantnative commented 3 years ago

Falsely added a hook for site.

✅ Has been removed in upcoming 1.1