Skip to content

Commit

Permalink
BUGFIX: remove last MultiFormSessionID
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Thaleikis committed Nov 30, 2015
1 parent 243caeb commit 7ae2e93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions code/model/MultiForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,15 @@ public function getController() {
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.
*
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/MultiFormProgressList.ss
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit 7ae2e93

Please sign in to comment.