Explorar el Código

FINAL PUSH PAPI

Gabriel Santiago Plaza hace 3 años
padre
commit
96042f76ef

+ 3
- 2
app/controllers/Objective2Controller.php Ver fichero

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

+ 2
- 1
app/views/local/managers/pCoords/objectives.blade.php Ver fichero

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