Browse Source

FINAL PUSH PAPI

parent
commit
96042f76ef

+ 3
- 2
app/controllers/Objective2Controller.php View File

352
 
352
 
353
 		$clean_input = $this->cleanAssocInput();
353
 		$clean_input = $this->cleanAssocInput();
354
 
354
 
355
+
355
 		Log::info(print_r($clean_input, true));
356
 		Log::info(print_r($clean_input, true));
356
 
357
 
357
 		/** Validation rules */
358
 		/** Validation rules */
395
 
396
 
396
 			// Set status
397
 			// Set status
397
 
398
 
398
-
399
+			Log::info("dimelo papi");
399
 			/** If Objective is updated, send success message */
400
 			/** If Objective is updated, send success message */
400
 			if ($Objective->save()) {
401
 			if ($Objective->save()) {
401
-
402
+				Log::info("dimelo papi2");
402
 				$objectiveId = $Objective->id;
403
 				$objectiveId = $Objective->id;
403
 				DB::delete("delete from `objective_outcome` where objective_id ={$objectiveId}");
404
 				DB::delete("delete from `objective_outcome` where objective_id ={$objectiveId}");
404
 				DB::delete("delete from objective_program where objective_id = {$objectiveId}");
405
 				DB::delete("delete from objective_program where objective_id = {$objectiveId}");

+ 2
- 1
app/views/local/managers/pCoords/objectives.blade.php View File

530
         e.preventDefault();
530
         e.preventDefault();
531
 
531
 
532
         outcome_id= []
532
         outcome_id= []
533
-        program_id= $('#assoc_program').val();
533
+        program_id= [];
534
+        program_id.push($('#assoc_program').val());
534
         status = $('#status').val();
535
         status = $('#status').val();
535
         text =$('#objective-text').val();
536
         text =$('#objective-text').val();
536
         id = $('#select-objective').val();
537
         id = $('#select-objective').val();