-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Damascus v.1.1.4 fails to create two or more records #93
Comments
Using Damascus V.1.13 the issue is still here. The issue affect every level of relationship between entities, for example Employee, Position, DeepPosition (an eventual third level of relatinship - the parent entity is Position). In every entity, in "Edit" screen Damascus creates two fields: The User needs to put something to avoid the error: The User needs to put something different from other records in those fields to avoid the error: |
Ok, fixed. Tested with Liferay 7.2.0 and 7.2.1. |
From the sample, there are the Employee model and Position model.
The below steps are valid for every entities (Employee, Position, DeepPosition).
Deploy the portlet and create a first record in Employee entity and leave empty the "Title" and "Summary" Damascus's auto-generated fields.
Then try to create a second record in Employee entity and leave empty the "Title" and "Summary" Damascus's auto-generated fields. - you get the duplicate error message:
Duplicate entry '20124-0' for key 'IX_26F09727'
because the 'urlTitle' field is everytime '0'.The User needs to put something to avoid the error:
Duplicate entry '20123-0' for key 'IX_A548BA27
- assuming there is one record already in place without content in "Title" and "Summary" Damascus's auto-generated fields.The User needs to put something different from other records in those fields to avoid the error:
Duplicate entry '20123-position-five' for key 'IX_A548BA27
- assuming there is one record already in place with "position-five" content in "Title" and "Summary" Damascus's auto-generated fields.The text was updated successfully, but these errors were encountered: