Skip to content

Commit

Permalink
Fix deleting a questiongroup.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@11876 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
GautamGupta committed Jan 4, 2012
1 parent ceef043 commit 00007af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/questiongroup.php
Expand Up @@ -249,7 +249,7 @@ public function delete()
else
Yii::app()->user->setFlash('flashmessage', $clang->gT('Group could not be deleted'));

$this->getController()->redirect($this->getController()->createUrl('admin/survey/view/sid/' . $surveyId));
$this->getController()->redirect($this->getController()->createUrl('admin/survey/view/surveyid/' . $surveyId));
}
}
}
Expand Down
Expand Up @@ -34,7 +34,7 @@
if (is_null($condarray))
{ ?>

<a href='#' onclick="if (confirm('<?php $clang->eT("Deleting this group will also delete any questions and answers it contains. Are you sure you want to continue?","js"); ?>')) { <?php echo $this->createUrl("admin/questiongroup/delete/surveyid/$surveyid/gid/$gid"); ?>}"
<a href='#' onclick="if (confirm('<?php $clang->eT("Deleting this group will also delete any questions and answers it contains. Are you sure you want to continue?","js"); ?>')) { window.open('<?php echo $this->createUrl("admin/questiongroup/delete/surveyid/$surveyid/gid/$gid"); ?>','_top'); }"
title="<?php $clang->eTview("Delete current question group"); ?>">
<img src='<?php echo Yii::app()->getConfig('imageurl'); ?>/delete.png' alt='<?php $clang->eT("Delete current question group"); ?>' name='DeleteWholeGroup' title='' width="40" height="40"/></a>

Expand Down

0 comments on commit 00007af

Please sign in to comment.