|
@@ -764,7 +764,7 @@ class CriteriaController extends \BaseController
|
764
|
764
|
$objectives = DB::table('objectives')
|
765
|
765
|
->join('objective_program', 'objective_program.objective_id', '=', 'objectives.id')
|
766
|
766
|
->join('programs', 'programs.id', '=', 'objective_program.program_id')
|
767
|
|
- ->where('program.school_id', Auth::user()->school_id)
|
|
767
|
+ ->where('programs.school_id', Auth::user()->school_id)
|
768
|
768
|
->where('objectives.active', 1)
|
769
|
769
|
->orderBy('objectives.text', 'asc')
|
770
|
770
|
->select('objectives.id', 'objectives.text')
|