Skip to content

Commit

Permalink
Fix bug where stopwatch does not start when creating ticket via portal
Browse files Browse the repository at this point in the history
  • Loading branch information
Hipska committed Mar 8, 2019
1 parent 026c617 commit 9c8b3bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions main.sv-auto-dispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ public static function GetDescription()
*/
public function ComputeMetric($oObject)
{
$oSet = new DBObjectSet( DBObjectSearch::FromOQL("SELECT DispatchRule AS DR
$oSet = new DBObjectSet( DBObjectSearch::FromOQL_AllData("SELECT DispatchRule AS DR
JOIN lnkCustomerContractToService AS L1 ON L1.dispatch_id = DR.id
WHERE L1.service_id = :this->service_id"), [], ['this' => $oObject], null, 1);
JOIN CustomerContract AS CC ON L1.customercontract_id = CC.id
WHERE L1.service_id = :this->service_id AND CC.org_id = :this->org_id"), [], ['this' => $oObject], null, 1);
$oDispatchRule = $oSet->Fetch();

if ($oDispatchRule)
Expand Down
2 changes: 1 addition & 1 deletion module.sv-auto-dispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

SetupWebPage::AddModule(
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
'sv-auto-dispatch/1.0.0',
'sv-auto-dispatch/1.0.1',
array(
// Identification
//
Expand Down

0 comments on commit 9c8b3bd

Please sign in to comment.