|
|
@@ -151,8 +151,8 @@ class TransformativeActionsController extends \BaseController
|
|
151
|
151
|
->whereIn('courses.program_id', $program_id)
|
|
152
|
152
|
->select('courses.*')
|
|
153
|
153
|
->groupBy('courses.number', 'courses.code', 'courses.name')
|
|
154
|
|
- ->orderBy('courses.name', 'ASC')
|
|
155
|
154
|
->orderBy('courses.code', 'ASC')
|
|
|
155
|
+ ->orderBy('courses.number', 'ASC')
|
|
156
|
156
|
->get();
|
|
157
|
157
|
/*
|
|
158
|
158
|
// if user is profesor
|
|
|
@@ -718,6 +718,7 @@ class TransformativeActionsController extends \BaseController
|
|
718
|
718
|
->join('transformative_objective', 'transformative_objective.ta_id', '=', 'transformative_actions.id')
|
|
719
|
719
|
->join('objectives', 'objectives.id', '=', 'transformative_objective.objective_id')
|
|
720
|
720
|
->where('transformative_actions.id', $ta_id)
|
|
|
721
|
+ ->where('objectives.id', '<>',0)
|
|
721
|
722
|
->select('objectives.text as text', 'objectives.id as id')
|
|
722
|
723
|
->orderBy('objectives.text', 'ASC')
|
|
723
|
724
|
->get();
|
|
|
@@ -725,6 +726,7 @@ class TransformativeActionsController extends \BaseController
|
|
725
|
726
|
->join('transformative_objective', 'transformative_objective.ta_id', '=', 'transformative_actions.id')
|
|
726
|
727
|
->join('objectives', 'objectives.id', '=', 'transformative_objective.objective_id')
|
|
727
|
728
|
->where('transformative_actions.id', $ta_id)
|
|
|
729
|
+ ->where('objectives.id', '<>',0)
|
|
728
|
730
|
->select('objectives.text as text', 'objectives.id as id')
|
|
729
|
731
|
->orderBy('objectives.text', 'ASC')
|
|
730
|
732
|
->lists('objectives.id');
|
|
|
@@ -743,6 +745,7 @@ class TransformativeActionsController extends \BaseController
|
|
743
|
745
|
->join('objective_outcome', 'objective_outcome.objective_id', '=', 'objectives.id')
|
|
744
|
746
|
->whereIn('objective_outcome.outcome_id', $outcome_ids)
|
|
745
|
747
|
->whereIn('objective_program.program_id', $program_ids)
|
|
|
748
|
+ ->where('objective_outcome.objective_id', '<>',0)
|
|
746
|
749
|
->orderBy('objectives.text', 'ASC')
|
|
747
|
750
|
->select('objectives.text as text', 'objectives.id as id')
|
|
748
|
751
|
->distinct()
|
|
|
@@ -830,6 +833,7 @@ class TransformativeActionsController extends \BaseController
|
|
830
|
833
|
->join('objective_program', 'objective_program.objective_id', '=', 'objectives.id')
|
|
831
|
834
|
->join('objective_outcome', 'objective_outcome.objective_id', '=', 'objectives.id')
|
|
832
|
835
|
->where('objective_outcome.outcome_id', $outcome_id)
|
|
|
836
|
+ ->where('objective_outcome.objective_id','<>',0 )
|
|
833
|
837
|
->whereIn('objective_program.program_id', $program_ids)
|
|
834
|
838
|
->orderBy('objectives.text', 'ASC')
|
|
835
|
839
|
->select('objectives.text as text', 'objectives.id as id')
|
|
|
@@ -1321,6 +1325,8 @@ class TransformativeActionsController extends \BaseController
|
|
1321
|
1325
|
->join('transformative_activity_criterion as tac', 'tac.activity_criterion_id', '=', 'activity_criterion.id')
|
|
1322
|
1326
|
->select('courses.*')
|
|
1323
|
1327
|
->groupBy(array('courses.code', 'courses.name', 'courses.semester_id'))
|
|
|
1328
|
+ ->orderBy('courses.code')
|
|
|
1329
|
+ ->orderBy('courses.number')
|
|
1324
|
1330
|
->get();
|
|
1325
|
1331
|
|
|
1326
|
1332
|
|