Skip to content

Commit

Permalink
Fixed survey deactivation
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@11879 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jan 4, 2012
1 parent c0a2ca1 commit c7aa83b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion application/controllers/admin/surveyaction.php
Expand Up @@ -464,7 +464,6 @@ public function deactivate($surveyid = null)
$survey->active = 'N';
$survey->save();

debugbreak();
$prow = Survey::model()->getSomeRecords('savetimings', array('sid' => $postsid));
if ($prow->savetimings == "Y")
{
Expand Down
2 changes: 1 addition & 1 deletion application/models/Survey.php
Expand Up @@ -179,7 +179,7 @@ public function getSomeRecords($fields=FALSE, $condition=FALSE)
}
}

return $record->findAll($criteria);
return $record->find($criteria);
}

function updateSurvey($data, $condition=FALSE)
Expand Down

0 comments on commit c7aa83b

Please sign in to comment.