Ticket #265 (closed defect: fixed)

Opened 19 years ago

Last modified 16 years ago

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

ReactorAdapter.cfc (19.7 kB) - added by dhughes 19 years ago.
Fixes the plural delete issue

Change History

Changed 19 years ago by dhughes

Fixes the plural delete issue

Changed 19 years ago by joe.rinehart

  • status changed from new to closed
  • resolution set to fixed

(In [289]) Fixes #264, #265 - Applying patch from dhughes and a var scoping to "label" in getObjectMetadata()

Changed 16 years ago by cfgrok

  • milestone User Reported Issues (with full information) deleted

Milestone User Reported Issues (with full information) deleted

Note: See TracTickets for help on using tickets.