|
|
@@ -32,7 +32,7 @@ class Causals extends Component
|
|
|
$this->idx = $idx;
|
|
|
$this->causal_id = $causal_id;
|
|
|
|
|
|
- if ($this->causal_id != null) {
|
|
|
+ if ($this->causal_id != null && $this->causal_id != 0) {
|
|
|
$c = \App\Models\Causal::findOrFail($this->causal_id);
|
|
|
$ids = array_reverse($c->recursiveParent($c->parent_id, [$c->id]));
|
|
|
|