Skip to content

Commit

Permalink
Fix reference to non-existent updateSurvey method of Survey model in …
Browse files Browse the repository at this point in the history
…tokens.php (thanks again dragooon).

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@11928 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Aaron Schmitz committed Jan 5, 2012
1 parent 4123169 commit 79e7b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/tokens.php
Expand Up @@ -873,7 +873,7 @@ function updatetokenattributedescriptions($iSurveyId)
$fieldcontents.=$fieldname . '=' . strip_tags(CHttpRequest::getPost('description_' . $fieldname)) . "\n";
}

Survey::model()->updateSurvey(array("attributedescriptions" => $fieldcontents), "sid=$iSurveyId");
Survey::model()->updateByPk($iSurveyId,array("attributedescriptions" => $fieldcontents));
$aData['thissurvey'] = getSurveyInfo($iSurveyId);
$aData['surveyid'] = $iSurveyId;
$this->_renderWrappedTemplate(array('tokenbar', 'message' => array(
Expand Down

0 comments on commit 79e7b3a

Please sign in to comment.