Skip to content

Commit

Permalink
Fix autostart
Browse files Browse the repository at this point in the history
  • Loading branch information
xacobofg committed Oct 13, 2021
1 parent 59358e4 commit 85505d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/task.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,8 @@ static function getSegment($task_id) {
static function afterAdd(TicketTask $item) {
global $DB;
$config = new PluginActualtimeConfig;
$plugin=new Plugin();
if($item->input['autostart']){
$plugin = new Plugin();
if(isset($item->input['autostart']) && $item->input['autostart']) {
if($item->getField('state')==1 && $item->getField('users_id_tech')==Session::getLoginUserID() && $item->fields['id']){
$task_id=$item->fields['id'];
if ($plugin->isActivated('tam')) {
Expand Down

0 comments on commit 85505d9

Please sign in to comment.