Jump to content

Module from module generator not working


Recommended Posts


I've used https://validator.prestashop.com/generator to generate very basic module. I installed module and observed following:

After I switch from no to yes and fill email and password fields and click save, data is saved in database. However, switch field returns to no regardless of database field being set to 1. What is even worse, as soon as I go back to modules list and click on configure, module configuration shows and data in database is set to null for all module fields.


Is this expected behavior or should I modify generated code in order to:

1. Switch stays green after clicking save,

2. Preserve data in database and load it on clicking configure?


I have attached module as it came from generator.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...