瀏覽代碼

Arregle el bug

父節點
當前提交
68d3b6ffc3
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      app/controllers/Objective2Controller.php

+ 2
- 2
app/controllers/Objective2Controller.php 查看文件

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'