Ticket #337: MGG-21_fix_EventContext.diff

File MGG-21_fix_EventContext.diff, 1.5 kB (added by cfgrok, 17 years ago)
  • home/jkrug/temp/modelglue/ModelGlue/gesture/eventrequest/EventContext.cfc

     
    619619                                <!--- so we don't have something we can attach keys to, lets make something---> 
    620620                                <cfset ScopeContext[ thisEventKeyArray[j] ] = structNew() /> 
    621621                        </cfif> 
    622                         <cfif j IS arrayLen( thisEventKeyArray ) AND i LTE arrayLen( arguments.ArrayOfDefaults )> 
     622                        <cfif j IS arrayLen( thisEventKeyArray ) AND variables._state.exists( EventKeyArray[i] )> 
     623                                <!--- if we are done dot-walking, and have an event value, lets use it. We should be done in the inner loop after this----> 
     624                                <cfset ScopeContext[ thisEventKeyArray[j] ] = variables._state.getValue( EventKeyArray[i] ) /> 
     625                        <cfelseif j IS arrayLen( thisEventKeyArray ) AND i LTE arrayLen( arguments.ArrayOfDefaults )> 
    623626                                <!--- if we are done dot-walking, and have a default, lets use it. We should be done in the inner loop after this----> 
    624627                                <cfset ScopeContext[ thisEventKeyArray[j] ] = arguments.ArrayOfDefaults[i] /> 
    625628                        <cfelseif j IS arrayLen( thisEventKeyArray )> 
     
    739742        <cfreturn variables._beanPopulator.populate(arguments.target, variables._state, fields) /> 
    740743</cffunction> 
    741744 
    742 </cfcomponent> 
    743  No newline at end of file 
     745</cfcomponent>