TiagoSilvaPereira / vemto-issues

Repository to track Vemto Issues
30 stars 0 forks source link

Form field settings (On Index) are changed when a field in the table structure changes nullable/not nullable #282

Closed manfredekblad closed 2 years ago

manfredekblad commented 2 years ago

Describe the bug The form field settings change their value when the same field changes the nullable/not nullable state. This means, making changes to the database affects the way the CRUD is rendered even for unrelated settings. So this means the same work has do be done multiple times.

Changing the nullable/not nullable setting on a db field shouldn't impact the settings on the CRUD for OnCreate/OnUpdate/OnShow/OnIndex.

To Reproduce Steps to reproduce the behavior:

  1. Uncheck a form fields "On Index" (state = unchecked)
  2. Change the field in the db, nullable/not nullable
  3. Go back to the form editor, the "On Index" is back to checked state

Expected behavior The OnIndex keeps it settings regardless if user change a db fields nullable/not nullable state

Screenshots https://www.loom.com/share/fcf85818689847d1aca05b4340d61947

Desktop (please complete the following information):

TiagoSilvaPereira commented 2 years ago

Fixed on 1.1.5