An empty draft is created after a second import
During testing #590 (closed) I noticed that when I import the file again, it creates an empty draft.
Steps to reproduce
- Go to localhost
- Login as admin/Admin123
- Leave GDSN products on the product list.
- Go to PcmtCoreBundle/Resources/E2OpenImport/work and run a file GS1Engine_RHSC_catalogueItemNotification_3.1_20200602-pregnav5.xml
- Go to Activity > Drafts and approve the drafts.
- Run the same file again.
What is the current bug behavior?
- An empty draft ooccurs.
What is the expected correct behavior?
- There should be no drafts on the list.