Quellcode durchsuchen

Stat tree edit - set template_stat_tree_id & copied_from_stat_tree_id

Vijayakrishnan vor 3 Jahren
Ursprung
Commit
6b3d6099b4
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      app/Models/StatTree.php

+ 2 - 0
app/Models/StatTree.php

@@ -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