|
@@ -1370,6 +1370,9 @@ class CriteriaController extends \BaseController
|
1370
|
1370
|
|
1371
|
1371
|
$array_to_send['criterion'] = Criterion::find($criterion_id);
|
1372
|
1372
|
|
|
1373
|
+ //coger outcomes de program_criterion, solo dominios que esten conectados a criterion_id,
|
|
1374
|
+ // bajo el programa_id
|
|
1375
|
+
|
1373
|
1376
|
$outcomes = DB::table('outcomes')
|
1374
|
1377
|
->join('criterion_objective_outcome', 'outcomes.id', '=', 'criterion_objective_outcome.outcome_id')
|
1375
|
1378
|
->join('program_criterion_objective_outcome', 'program_criterion_objective_outcome.cri_obj_out_id', '=', 'criterion_objective_outcome.id')
|
|
@@ -1381,6 +1384,8 @@ class CriteriaController extends \BaseController
|
1381
|
1384
|
|
1382
|
1385
|
foreach ($outcomes as $out) {
|
1383
|
1386
|
|
|
1387
|
+ // get objectivos del dominio pareados a este criterio_id bajo program_id
|
|
1388
|
+
|
1384
|
1389
|
$out->objectives = DB::table("program_criterion_objective_outcome as poco")
|
1385
|
1390
|
->join('criterion_objective_outcome as cobo', 'cobo.id', '=', 'poco.cri_obj_out_id')
|
1386
|
1391
|
->join('objectives', 'objectives.id', '=', 'cobo.objective_id')
|