Skip to content

Commit

Permalink
Fixed issue: survey url params not transferred after captcha
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Nov 27, 2017
1 parent ae07e40 commit f5871e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion application/views/survey/frontpage/enterCaptcha.php
@@ -1,3 +1,7 @@
<?php
$currentUrl = $_SERVER['REQUEST_URI'];
$urlParted = parse_url($currentUrl);
?>
<div class="tokenmessage-wrapper">
<?php if (isset($error)): ?>
<span class='error'>$error</span><br/>
Expand All @@ -16,7 +20,7 @@
</div>
<?php endif; ?>
<div class="container">
<?php echo CHtml::beginForm(array("/survey/index/sid/{$iSurveyId}"), 'post', array(
<?php echo CHtml::beginForm($urlParted['path'].'?'.$urlParted['query'], 'post', array(
'id' => 'tokenform',
'class' => 'form-horizontal col-sm-12 col-md-10 col-md-offset-1'
)); ?>
Expand Down
6 changes: 5 additions & 1 deletion application/views/survey/frontpage/enterToken.php
@@ -1,3 +1,7 @@
<?php
$currentUrl = $_SERVER['REQUEST_URI'];
$urlParted = parse_url($currentUrl);
?>
<div class="tokenmessage-wrapper">
<?php if (isset($error)): ?>
<span class='error'>$error</span><br/>
Expand All @@ -22,7 +26,7 @@
<?php endif; ?>

<div class="container">
<?php echo CHtml::beginForm(array("/survey/index/sid/{$iSurveyId}"), 'post', array(
<?php echo CHtml::beginForm($urlParted['path'].'?'.$urlParted['query'], 'post', array(
'id' => 'tokenform',
'class' => 'form-horizontal col-sm-12 col-md-10 col-md-offset-1'
)); ?>
Expand Down

0 comments on commit f5871e5

Please sign in to comment.