Ticket #423: Invocation.cfc.patch

File Invocation.cfc.patch, 1.3 kB (added by nickel4242, 15 years ago)

Patch to fix issue

  • gesture/eventrequest/phase/Invocation.cfc

     
    8585                <cfset arguments.eventContext.addEventHandler(initialEventHandler) /> 
    8686        <cfelseif find("&", urlDecode(initialEventHandlerName) ) GT 0 AND unwindAndForward(urlDecode(initialEventHandlerName), arguments.eventContext) IS true> 
    8787                <!--- unwindAndForward will never return true. It will redirect before it returns anything. If it can not redirect, then this branch will fail and the other branches will evaluate ---> 
    88         <cfelseif structKeyExists(modelglue.eventHandlers, modelglue.configuration.missingEvent)> 
     88        <cfelseif modelglue.hasEventHandler(modelglue.configuration.missingEvent)> 
    8989                <cfset arguments.eventContext.setValue("missingEvent", initialEventHandlerName) /> 
    90                 <cfset arguments.eventContext.addEventHandler(modelglue.eventHandlers[modelglue.configuration.missingEvent]) /> 
     90                <cfset arguments.eventContext.addEventHandler(modelglue.getEventHandler(modelglue.configuration.missingEvent)) /> 
    9191        <cfelse> 
    9292                <cfthrow message="Model-Glue:  There is no known event handler for ""#initialEventHandlerName#""." /> 
    9393        </cfif>