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