@@ -720,9 +720,9 @@ public function create_edit_data($ticket = false, $a_parameters = false)
720720
721721 if (old ('category_id ' )){
722722 // Form old values
723- $ a_current ['owner_id ' ] = old ('owner_id ' );
723+ $ a_current ['owner_id ' ] = old ('owner_id ' );
724724
725- $ a_current ['complete ' ] = old ('complete ' );
725+ $ a_current ['complete ' ] = old ('complete ' );
726726
727727 $ a_current ['start_date ' ] = old ('start_date ' );
728728 $ a_current ['limit_date ' ] = old ('limit_date ' );
@@ -734,9 +734,9 @@ public function create_edit_data($ticket = false, $a_parameters = false)
734734
735735 }elseif ($ ticket ){
736736 // Edition values
737- $ a_current ['owner_id ' ] = $ ticket ->owner_id ;
737+ $ a_current ['owner_id ' ] = $ ticket ->user_id ;
738738
739- $ a_current ['complete ' ] = $ ticket ->isComplete () ? "yes " : "no " ;
739+ $ a_current ['complete ' ] = $ ticket ->isComplete () ? "yes " : "no " ;
740740 $ a_current ['status_id ' ] = $ ticket ->status_id ;
741741
742742 $ a_current ['start_date ' ] = $ ticket ->start_date ;
@@ -748,9 +748,9 @@ public function create_edit_data($ticket = false, $a_parameters = false)
748748 $ a_current ['agent_id ' ] = $ ticket ->agent_id ;
749749 }else {
750750 // Defaults
751- $ a_current ['owner_id ' ] = auth ()->user ()->id ;
751+ $ a_current ['owner_id ' ] = auth ()->user ()->id ;
752752
753- $ a_current ['complete ' ] = "no " ;
753+ $ a_current ['complete ' ] = "no " ;
754754
755755 $ a_current ['start_date ' ] = $ a_current ['limit_date ' ] = "" ;
756756
0 commit comments