Browse Source

Fix import activity stack

pull/3/head
Wahyu Ramadhan 2 years ago
parent
commit
7d7824c98e
  1. 1
      app/Http/Controllers/ActivityController.php

1
app/Http/Controllers/ActivityController.php

@ -467,6 +467,7 @@ class ActivityController extends Controller
}
$activity->parent_id = $activityStack[count($activityStack) - 1]->id ?? null;
array_push($activityStack, $activity);
// there should be better way to except / filter attribute level before save because it's cause error
// cant use except() / filter() on $activity collection somehow
unset($activity->level);

Loading…
Cancel
Save