Browse Source

Arregle el bug

parent
commit
68d3b6ffc3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/controllers/Objective2Controller.php

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

@@ -53,7 +53,7 @@ class Objective2Controller extends \BaseController
53 53
 		if ($edit) {
54 54
 			return Validator::make(
55 55
 				array(
56
-					'text' => $clean_input['text'],
56
+					//'text' => $clean_input['text'],
57 57
 
58 58
 					'outcome_id' => $clean_input['outcome_id'],
59 59
 					'program_id' => $clean_input['program_id']
@@ -77,7 +77,7 @@ class Objective2Controller extends \BaseController
77 77
 
78 78
 				),
79 79
 				array(
80
-					'text' => 'required|string|unique',
80
+					'text' => 'required|string|unique:objectives,text',
81 81
 
82 82
 					'outcome_id' => 'required|array',
83 83
 					'program_id' => 'required|array'