Ticket #265 (closed defect: fixed)
Multiple plural relationships don't persist correctly
| Reported by: | dhughes | Owned by: | somebody |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Version: | Severity: | normal | |
| Keywords: | Cc: |
Description
If you have a record that you're doing a generic commit on which has more than one many-to-many/plural relationships and you delete elements from at least two of the relationships then the second relationship receives too invalid criteria and an error is thrown.
The problem is that the criteria to delete is stored in a variable deletionQueue which needs to be reset on each new relationship, which it's not.
This is solved by adding <cfset deletionQueue = arrayNew(1) /> after the cfloop on like 469. See the attached file. (Note, this also includes my own fix for an issue with generic commits re ticket #264)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)