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
26 stars 13 forks source link

'All changes made will be lost' warning upon exiting unedited collection item #51

Closed claudiobgit closed 1 year ago

claudiobgit commented 1 year ago

Bug report

Describe the bug

When exiting an item that features the plugin custom fields, the user is warned about data loss and forced to click 'Save', even if nothing was updated.

Steps to reproduce the behavior

  1. In the Content Manager go to a collection where you use the lat/lon custom field
  2. Click on a collection item an open it
  3. Do not edit anything
  4. Click the Back link at the top of the page
  5. See error

Expected behavior

Normally going back to the items list of the collection as no content was updated.

omikulcik commented 1 year ago

@claudiobgit Thank you for reporting this. I will check whether this could be fixed.