Skip to content

Commit

Permalink
dev: fixed survey overview problem where data wasn't refreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
mennodekker committed May 8, 2012
1 parent 7ffbfa0 commit edf718b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions application/models/Survey_dynamic.php
Expand Up @@ -28,10 +28,12 @@ class Survey_dynamic extends CActiveRecord
*/
public static function model($sid = NULL)
{
if (!is_null($sid))
if (!is_null($sid)) {
self::sid($sid);

return parent::model(__CLASS__);
}
$model = parent::model(__CLASS__);
$model->refreshMetaData();
return $model;
}

/**
Expand Down

0 comments on commit edf718b

Please sign in to comment.