You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug or issue you're experiencing
Under the settings /admin/freeform/settings/form-builder you can set the "Default Status", this defaults to status "Open".
When installing freeform there are 3 statussus inserted in the database table freeform_statuses. In normal conditions the status "Open" should be ID 2. There are a few drawbacks to this method of linking directly to a database ID.
The statusses can be edited in a production env admin/freeform/settings/statuses. This could cause an issue when deleting a custom status which is linked as "Default status".
/admin/freeform/settings/statuses/2 there is also a default status lightswitch setting. Is this setting still used? It feels like the same thing.
Steps to reproduce
N/A
Expected behavior
Make use of the lightswitch setting, isDefault column in freeform_statuses
Craft & Plugin Info (please complete the following information):
Craft Version: Craft Pro 4.8.0
Freeform Version: 5.1.14
Freeform Edition: Pro
Fresh Install or Upgrade: Fresh install
The text was updated successfully, but these errors were encountered:
It took me a while to finally understand what you were referring to. 😅 I get it now. Accidentally, there are two places to set the default status of new forms, with the new one under /admin/freeform/settings/form-builder as of Freeform 5.
We'll look into this further and come up with a solution. 🙂
I wanted to let you know that we've released Freeform 5.1.19, which cleans up the default Status behavior (just stored inside the Settings -> Form Builder area now). I believe this change also indirectly resolves the default ID issue you're having. 🙂
Describe the bug or issue you're experiencing
Under the settings
/admin/freeform/settings/form-builder
you can set the "Default Status", this defaults to status "Open".When installing freeform there are 3 statussus inserted in the database table
freeform_statuses
. In normal conditions the status "Open" should be ID 2. There are a few drawbacks to this method of linking directly to a database ID.We are using for a production env a mariadb galera cluster, where auto increment works different. My ID's are inserted like 1,4,7.
https://stackoverflow.com/questions/23022574/why-the-auto-increment-id-does-not-increase-one-by-one-how-to-set-it
So when submitting a form it tries to insert ID 2 as status, which does not exists causing a
Integrity constraint violation
error.The statusses can be edited in a production env
admin/freeform/settings/statuses
. This could cause an issue when deleting a custom status which is linked as "Default status"./admin/freeform/settings/statuses/2
there is also a default status lightswitch setting. Is this setting still used? It feels like the same thing.Steps to reproduce
Expected behavior
Make use of the lightswitch setting,
isDefault
column infreeform_statuses
Craft & Plugin Info (please complete the following information):
The text was updated successfully, but these errors were encountered: