|
@@ -478,16 +478,16 @@ class CriteriaController extends \BaseController
|
478
|
478
|
|
479
|
479
|
|
480
|
480
|
|
481
|
|
- $criterion->number_of_scales = $clean_input['number_of_scales'];
|
482
|
|
- $criterion->maximum_score = $clean_input['maximum_score'];
|
|
481
|
+
|
483
|
482
|
|
484
|
483
|
|
485
|
484
|
|
486
|
485
|
// Set program
|
|
486
|
+ /*
|
487
|
487
|
if (Input::get('program_id') != 0)
|
488
|
488
|
$criterion->program_id = Input::get('program_id');
|
489
|
489
|
else
|
490
|
|
- $criterion->program_id = NULL;
|
|
490
|
+ $criterion->program_id = NULL;*/
|
491
|
491
|
|
492
|
492
|
// Set status
|
493
|
493
|
if (Input::get('status') == 0)
|
|
@@ -516,7 +516,7 @@ class CriteriaController extends \BaseController
|
516
|
516
|
DB::insert("insert into `criterion_objective_outcome` (`objective_id`, `outcome_id`, `criterion_id`,`objective_outcome_id`) values ({$objective_id},{$outcome_id}, {$criterionId}, 0)");
|
517
|
517
|
}
|
518
|
518
|
}
|
519
|
|
- DB::delete("delete from `scales` where id in (select scale_id id from criterion_scale where criterion_id = {$criterionId})");
|
|
519
|
+ /*DB::delete("delete from `scales` where id in (select scale_id id from criterion_scale where criterion_id = {$criterionId})");
|
520
|
520
|
|
521
|
521
|
for ($i = 0; $i < sizeof($clean_input['scale_title']); $i++) {
|
522
|
522
|
$scale = new Scale;
|
|
@@ -540,7 +540,7 @@ class CriteriaController extends \BaseController
|
540
|
540
|
return Redirect::to('program-objective')->withInput();
|
541
|
541
|
}
|
542
|
542
|
}
|
543
|
|
- }
|
|
543
|
+ }*/
|
544
|
544
|
|
545
|
545
|
|
546
|
546
|
|