(lets use the pre-made entity Projects and Tasks):
1. In Entities List, make the Tasks' Name unique.
2. Create nested entity form on entity Projects for the Tasks. Set the fields display "In a new window".
3. Go to the form, add at least one project record and one task record. Save.
4. Open again the same project and edit the task. Now I cannot save the edit result, the unique validation keeps telling me that the task name is not unique, which is strange because that's the one and only task.
Possible fix
In file modules/subentity/views/form.php, I added this on line 56:
Code: Select all
$current_item_id = $subentity_form_params[2];