Skip to content

Commit

Permalink
Fixed issue #05877: all Lime replacement fields are broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronschmitz committed Mar 24, 2012
1 parent 13d06a4 commit 7b20089
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions application/controllers/AdminController.php
Expand Up @@ -183,6 +183,7 @@ public function getActionClasses()
'expressions' => 'expressions',
'globalsettings' => 'globalsettings',
'htmleditor_pop' => 'htmleditor_pop',
'limereplacementfields' => 'limereplacementfields',
'index' => 'index',
'kcfinder' => 'kcfinder',
'labels' => 'labels',
Expand Down
20 changes: 13 additions & 7 deletions application/controllers/admin/limereplacementfields.php
Expand Up @@ -15,16 +15,22 @@
class limereplacementfields extends Survey_Common_Action
{

public function index($fieldtype, $action, $surveyid = false, $gid = false, $qid = false)
public function index()
{
if ($surveyid != false) {
$surveyid = sanitize_int($surveyid);
if (isset($_GET['surveyid'])) {
$surveyid = sanitize_int($_GET['surveyid']);
}
if ($gid != false) {
$gid = sanitize_int($gid);
if (isset($_GET['gid'])) {
$gid = sanitize_int($_GET['gid']);
}
if ($qid != false) {
$qid = sanitize_int($qid);
if (isset($_GET['qid'])) {
$qid = sanitize_int($_GET['qid']);
}
if (isset($_GET['fieldtype'])) {
$fieldtype = $_GET['fieldtype'];
}
if (isset($_GET['action'])) {
$action = $_GET['action'];
}

$clang = Yii::app()->lang;
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/limeReplacementFields_view.php
Expand Up @@ -30,7 +30,7 @@ function Ok()
<body scroll="no" style="OVERFLOW: hidden;">
<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>

<td>
<?php
if (count($replFields) > 0 || isset($cquestions) )
{
Expand Down

0 comments on commit 7b20089

Please sign in to comment.