BUGFIX: remove last MultiFormSessionID

This commit is contained in:
Peter Thaleikis 2015-11-30 22:25:40 +13:00
parent 243caeb579
commit 7ae2e938dc
2 changed files with 10 additions and 1 deletions

View File

@ -175,6 +175,15 @@ abstract class MultiForm extends Form {
return $this->controller;
}
/**
* Returns the get_var to the template engine
*
* @return string
*/
public function get_var() {
return $this->config()->get_var;;
}
/**
* Get the current step.
*

View File

@ -1,7 +1,7 @@
<ul class="stepIndicator current-$CurrentStep.class">
<% loop AllStepsLinear %>
<li class="$ClassName<% if LinkingMode %> $LinkingMode<% end_if %><% if FirstLast %> $FirstLast<% end_if %><% if $ExtraClasses %> $ExtraClasses<% end_if %>">
<% if LinkingMode = current %><% else %><% if ID %><a href="{$Top.URLSegment}/?MultiFormSessionID={$SessionID}&amp;StepID={$ID}"><% end_if %><% end_if %>
<% if LinkingMode = current %><% else %><% if ID %><a href="{$Top.URLSegment}/?${Top.get_var}={$SessionID}&amp;StepID={$ID}"><% end_if %><% end_if %>
<% if Title %>$Title<% else %>$ClassName<% end_if %>
<% if LinkingMode = current %><% else %><% if ID %></a><% end_if %><% end_if %>
</li>