Skip to content

Commit

Permalink
Fix infectionstatus and issue status in detectx
Browse files Browse the repository at this point in the history
  • Loading branch information
bochoven committed Nov 8, 2018
1 parent 0e80e32 commit ff4580a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/modules/detectx/detectx_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ function process($json)
if (! $json ) {
throw new Exception("Error Processing Request: No JSON file found", 1);
}
// Delete previous set
$this->deleteWhere('serial_number=?', $this->serial_number);

// Process json into object thingy
$data = json_decode($json, true);
Expand Down Expand Up @@ -67,6 +65,9 @@ function process($json)
$this->issues = 'No Issues Detected';
$this->numberofissues = 0;
}
$this->infectionstatus = (int) $this->infectionstatus;
$this->issuestatus = (int) $this->issuestatus;

$this->save();
}
}

0 comments on commit ff4580a

Please sign in to comment.