add filters, refactoring
This commit is contained in:
1 parent
5be69526ac
commit
c1c24fc5e4
42 files changed
+12364
-443
No files matched your search
@@ -40,7 +40,7 @@ class QuestionController extends \yii\rest\Controller
|
||||
throw new NotFoundHttpException('Incorrect questionnaire ID');
|
||||
}
|
||||
|
||||
$questions = Question::getActiveQuestions($questionnaire_id);
|
||||
$questions = Question::activeQuestions($questionnaire_id);
|
||||
if(empty($questions)) {
|
||||
throw new NotFoundHttpException('Active questionnaire not found');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user