Skip to content

Commit

Permalink
Fixed browse saved responses unavailable on IIS systems
Browse files Browse the repository at this point in the history
  • Loading branch information
mennodekker committed Feb 5, 2013
1 parent 91ec789 commit a738e71
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/saved.php
Expand Up @@ -57,7 +57,7 @@ public function delete($iSurveyId, $iSurveyResponseId, $iSavedControlId)
Saved_control::model()->deleteAllByAttributes(array('scid' => $iSavedControlId, 'sid' => $iSurveyId)) or die($clang->gT("Couldn't delete"));
Yii::app()->db->createCommand()->delete("{{survey_".intval($iSurveyId)."}}", 'id=:id', array('id' => $iSurveyResponseId)) or die($clang->gT("Couldn't delete"));

$this->getController()->redirect($this->getController()->createUrl("admin/saved/view/surveyid/{$iSurveyId}"));
$this->getController()->redirect($this->getController()->createUrl("admin/saved/sa/view/surveyid/{$iSurveyId}"));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/dataentry/insert.php
Expand Up @@ -87,7 +87,7 @@
<?php endif; ?>

<?php if(isset($save)): ?>
<input type='submit' value='<?php $clang->eT("Browse saved responses"); ?>' onclick="window.open('<?php echo $this->createUrl('/admin/saved/view/surveyid/'.$surveyid.'/all'); ?>', '_top')" />
<input type='submit' value='<?php $clang->eT("Browse saved responses"); ?>' onclick="window.open('<?php echo $this->createUrl('/admin/saved/sa/view/surveyid/'.$surveyid.'/all'); ?>', '_top')" />
<br /><br />
<?php endif; ?>
</div>
2 changes: 1 addition & 1 deletion application/views/admin/responses/browsemenubar_view.php
Expand Up @@ -71,7 +71,7 @@

<?php if (hasSurveyPermission($surveyid, 'responses', 'read'))
{ ?>
<a href='<?php echo $this->createUrl("admin/saved/view/surveyid/$surveyid"); ?>'>
<a href='<?php echo $this->createUrl("admin/saved/sa/view/surveyid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>saved.png' title='' alt='<?php $clang->eT("View Saved but not submitted Responses"); ?>' /></a>
<?php }
if (hasSurveyPermission($surveyid, 'responses', 'import'))
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/survey/surveybar_view.php
Expand Up @@ -214,7 +214,7 @@
} ?>
<?php if($responsesread) {
if($activated) { ?>
<li><a href='<?php echo $this->createUrl("admin/saved/view/surveyid/$surveyid");?>' >
<li><a href='<?php echo $this->createUrl("admin/saved/sa/view/surveyid/$surveyid");?>' >
<img src='<?php echo $sImageURL;?>saved_30.png' alt='' /> <?php $clang->eT("Partial (saved) responses");?></a></li>
<?php } else { ?>
<li><a href="#" onclick="alert('<?php $clang->eT("This survey is not active - no responses are available","js");?>');" >
Expand Down

0 comments on commit a738e71

Please sign in to comment.