|
@@ 232-242 (lines=11) @@
|
| 229 |
|
|
| 230 |
|
if ($check > 0) { |
| 231 |
|
$response['message'] = 'Failed, label ' . $request->label . ' already exists'; |
| 232 |
|
} else { |
| 233 |
|
// $pendaftaran->label = $request->input('label'); |
| 234 |
|
// $pendaftaran->description = $request->input('description'); |
| 235 |
|
// $pendaftaran->kegiatan_id = $request->input('kegiatan_id'); |
| 236 |
|
// $pendaftaran->user_id = $request->input('user_id'); |
| 237 |
|
// $pendaftaran->save(); |
| 238 |
|
$update = $this->updateWithWorkflow($pendaftaran, $id, $request->all()); |
| 239 |
|
|
| 240 |
|
// $response['message'] = 'success'; |
| 241 |
|
$response['message'] = $update['message']; |
| 242 |
|
} |
| 243 |
|
} else { |
| 244 |
|
// $pendaftaran->label = $request->input('label'); |
| 245 |
|
// $pendaftaran->description = $request->input('description'); |
|
@@ 243-253 (lines=11) @@
|
| 240 |
|
// $response['message'] = 'success'; |
| 241 |
|
$response['message'] = $update['message']; |
| 242 |
|
} |
| 243 |
|
} else { |
| 244 |
|
// $pendaftaran->label = $request->input('label'); |
| 245 |
|
// $pendaftaran->description = $request->input('description'); |
| 246 |
|
// $pendaftaran->kegiatan_id = $request->input('kegiatan_id'); |
| 247 |
|
// $pendaftaran->user_id = $request->input('user_id'); |
| 248 |
|
// $pendaftaran->save(); |
| 249 |
|
$update = $this->updateWithWorkflow($pendaftaran, $id, $request->all()); |
| 250 |
|
|
| 251 |
|
// $response['message'] = 'success'; |
| 252 |
|
$response['message'] = $update['message']; |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
$response['status'] = true; |
| 256 |
|
|