I'm looking at the upgrade documentation at
http://docs.model-glue.com/wiki/UpgradingModelGlue/UpgradingFromModelGlue2#UpgradingFromModel-Glue2
and step 4 appears to be at odds with the code.
"4. The forward() method in EventContext.cfc preserves the state by
default in Model-Glue 3. The default in Model-Glue 2 was for forwards
to not preserve the event state. To have a forward not preserve the
event state in Model-Glue 3, set the third argument to false. If you
are not already passing a second argument, you can set it to "" (the
default)."
In the code for ModelGlue/unity/eventrequest/EventContext.cfc in the
forward function:
<cfargument name="stateful" type="boolean" required="false"
default="true" hint="A list of state values to append to the URL.">
In the code for ModelGlue/gesture/eventrequest/EventContext.cfc in the
forward function:
<cfargument name="preserveState" type="boolean" required="false"
default="false" hint="Preserve state across the redirect?" />
So it looks like MG3 doesn't preserve state by default, but MG2 did.
It's not what the upgrade documentation specifies. Can some please
confirm (or refute!) that the documentation is wrong.
Cheers,
Andy