notum-cz / strapi-plugin-location

This plugin allows users to create location inputs and store latitude and longitude values as geometry types in a PostGIS database. It also provides functionality to filter items based on their location.
MIT License
24 stars 13 forks source link

Bug: Does not work with fields containing capital letters #2

Closed omikulcik closed 1 year ago

omikulcik commented 1 year ago

Bug report

Describe the bug

Strapi crashes when a custom location fields name is containing capital letters.

How to fix:

  1. Go to src/api/content-types/[your content type]/schema.json
  2. Change the field name to all lower case
  3. The app should now start without any problems

Steps to reproduce the behavior

  1. Go to Content-types-builder
  2. Create a content-type with the custom location field and use capital letters in its name.
  3. Click save and the app crashes

Expected behavior

The field should be created without crashing the application.

Screenshots

image

System

omikulcik commented 1 year ago

Closed by #18