Ticket #120 (new defect)
iterator.deleteAll Variable RECORD is undefined
| Reported by: | jclausen | Owned by: | dhughes |
|---|---|---|---|
| Type: | defect | Priority: | high |
| Milestone: | 1.0 Release | Component: | Reactor - Iterator |
| Version: | Severity: | major | |
| Keywords: | Cc: |
Description
Using r419, using deleteAll() causes the following error:
Oops!
Message Variable RECORD is undefined.
Detail
Extended Info
Tag Context C:\Inetpub\wwwroot\reactor\iterator\iterator.cfc (188)
C:\Inetpub\wwwroot\reactor\iterator\iterator.cfc (251)
Have cleared project files and cycled CF with no change. The problem is the same as posted previously on the Mailing list (http://www.mail-archive.com/reactor@reactorframework.com/msg01812.html)
Reverting to r408 solves the problem. The following code was being executed at the time:
<cfset var waypoint = dbservice.createRecord("wpt_waypoints").load(waypoint_id=arguments.waypointID) />
<cfset var comments = waypoint.getwpt_ptcommentsIterator()/>
<cfset var tags = waypoint.getwpt_tag_ptconnectIterator() />
<!--- Check for ownership--->
<cfif waypoint.getwaypoint_userid() EQ arguments.userID>
<!--- First Delete Our Comments --->
<cfset comments.deleteAll()>
<!--- Next Delete Our Tags --->
<cfset tags.deleteAll()>
<!--- Last Delete the Waypoint --->
<cfset waypoint.delete() />
</cfif>
Failure occurs on the first iterator where hasMore() is true.

