Ticket #282 (closed defect: fixed)
Fix for Variable orm is undefined when updating record
| Reported by: | Bryan S | Owned by: | somebody |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Version: | 2.0.304 | Severity: | major |
| Keywords: | Cc: |
Description
When updating a record on a form for a table with child relationships this error message is generated
Message Variable orm is undefined. Detail Extended Info Tag Context D:\Inetpub\wwwroot\ModelGlue?\unity\orm\ReactorAdapter?.cfc (501) D:\Inetpub\wwwroot\ModelGlue?\unity\controller\GenericORMController.cfc (161) D:\Inetpub\wwwroot\ModelGlue?\unity\listener\Listener.cfc (26) D:\Inetpub\wwwroot\ModelGlue?\unity\eventrequest\MessageBroadcaster?.cfc (32) D:\Inetpub\wwwroot\ModelGlue?\unity\framework\ModelGlue?.cfc (359) D:\Inetpub\wwwroot\ModelGlue?\unity\framework\ModelGlue?.cfc (332) D:\Inetpub\wwwroot\ModelGlue?\unity\framework\ModelGlue?.cfc (306) D:\Inetpub\wwwroot\ModelGlue?\unity\framework\ModelGlue?.cfc (264) D:\Inetpub\wwwroot\ModelGlue?\unity\ModelGlue?.cfm (104) D:\Inetpub\wwwroot\appmanager\index.cfm (50)
modifying line 500 of \ModelGlue?\unity\orm\ReactorAdapter?.cfc
as follows fixes the problem
<!--- ORIGINAL CODE <cfset orm.commit(table, record) /> ---> <!--- FIX ---> <cfset commit(table, record) />
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)