       else
         $scope.filters.tutorials = [$scope.unit.tutorialFromId(tutorialId)]
       $scope.filters.tutorials = _.map($scope.filters.tutorials, 'id')
-      $scope.applyFilters()
+      applyFilters()
     # Set initial tutorial scope
     $scope.tutorialIdChanged()
     # Task definition options

      taskDef = $scope.unit.taskDef(taskDefId) if taskDefId?
      $scope.filters.taskDefinition = taskDef
      refreshData() if $scope.isTaskDefMode
      $scope.applyFilters()
    # Set new taskDefinitionIdSelected if task def mode and taskDefAbbr set
    setTaskDefFromTaskKey = (taskKey) ->
      # Only applicable in taskDefMode

        $scope.setSelectedTask(null)
      if filteredTasks && filteredTasks.length && !$scope.taskData.selectedTask
        $scope.setSelectedTask(filteredTasks[0])
      
    # Let's call having a source of tasksForDefinition plus having a task definition
    # auto-selected with the search options open task def mode -- i.e., the mode
    # for selecting tasks by task definitions
