Browse Source

Fix import nik

pull/3/head
Wahyu Ramadhan 1 year ago
parent
commit
e7cf2e7ce3
  1. 2
      app/Http/Controllers/ActivityController.php

2
app/Http/Controllers/ActivityController.php

@ -465,7 +465,7 @@ class ActivityController extends Controller
$activity->save(); $activity->save();
$activity->level = $activity_row['level']; $activity->level = $activity_row['level'];
} }
if (isset($data['activities'][$i]['nik'])) { if (isset($data['activities'][$i]['nik']) && $data['activities'][$i]['nik'] != '') {
$user = User::where("ktp_number", $data['activities'][$i]['nik'])->first(); $user = User::where("ktp_number", $data['activities'][$i]['nik'])->first();
$userProyek = UserToProyek::where("user_id", $user->id) $userProyek = UserToProyek::where("user_id", $user->id)
->where("proyek_id", $projectId) ->where("proyek_id", $projectId)

Loading…
Cancel
Save