Skip to content

Commit

Permalink
Fixed issue: minor coding cleanup, added stubs for checking CPDB inte…
Browse files Browse the repository at this point in the history
…grity
  • Loading branch information
jcleeland committed Jun 4, 2012
1 parent 00b11e5 commit eed87f3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions application/controllers/admin/checkintegrity.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,25 @@ protected function _checkintegrity()
$aDelete['redundantsurveytables'] = $aOldSurveyTableAsk;
}
}

/**********************************************************************/
/* CHECK CPDB SURVEY_LINKS TABLE FOR REDUNDENT TOKEN TABLES */
/**********************************************************************/
//1: Get distinct list of survey_link survey ids, check if tokens
// table still exists for each one, and remove if not


/* TODO */

/**********************************************************************/
/* CHECK CPDB SURVEY_LINKS TABLE FOR REDUNDENT TOKEN ENTRIES */
/**********************************************************************/
//1: For each survey_link, see if the matching entry still exists in
// the token table and remove if it doesn't.


/* TODO */

return $aDelete;
}

Expand Down
3 changes: 2 additions & 1 deletion application/controllers/admin/participantsaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ function displayParticipants()
{
$aSurveyNames = Surveys_languagesettings::model()->with('survey', 'owner')->findAll('survey.owner_id=:uid AND surveyls_language=:lang',array('survey.uid'=>Yii::app()->session['loginID'], ':lang'=>$lang));
}
//echo "<pre>"; print_r($aSurveyNames); echo "</pre>";

/* Build a list of surveys that have tokens tables */
$tSurveyNames=array();
foreach($aSurveyNames as $row)
{
Expand Down

0 comments on commit eed87f3

Please sign in to comment.