|
@@ -43,6 +43,7 @@ class StatTree extends Model
|
|
|
$instance->is_template = false;
|
|
|
$instance->pro_id = $pro->id;
|
|
|
$instance->pro_scope_clause = $this->pro_scope_clause;
|
|
|
+ $instance->template_stat_tree_id = $this->id;
|
|
|
$instance->save();
|
|
|
|
|
|
// create tree lines
|
|
@@ -67,6 +68,7 @@ class StatTree extends Model
|
|
|
$instance->is_template = $this->is_template;
|
|
|
$instance->pro_id = $this->pro_id;
|
|
|
$instance->pro_scope_clause = $this->pro_scope_clause;
|
|
|
+ $instance->copied_from_stat_tree_id = $this->id;
|
|
|
$instance->save();
|
|
|
|
|
|
// create tree lines
|