a new object is created and saved even when cancel is engaged
Summary
A new object is created and persisted in the database, before the entire transaction is confirmed by pressing 'save', due to switching to the next tab within a form.
Steps to reproduce
- Add new Client, DNS Zone or other entity
- Fill in the obligatory fields
- Go to the next tab. For instance, from Address to Limits.
- Choose 'Cancel'
- Check the list, you will see your latest input there
Correct behaviour
Only when 'save' has been engaged on any tab within the transaction 'add new ... ' there should be created an instance. If it has to be created in advance (while starting the transaction), than everything should be deleted when 'cancel' is engaged.
Environment
Server OS + version: ISPConfig version: 3.2.3