Browse Source

Maintenance: Fix typo in time accounting check.

Rolf Schmidt 1 year ago
parent
commit
97b3d6a91d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/policies/ticket/time_accounting_policy.rb

+ 1 - 1
app/policies/ticket/time_accounting_policy.rb

@@ -20,6 +20,6 @@ class Ticket::TimeAccountingPolicy < ApplicationPolicy
   end
 
   def matches_selector?
-    CoreWorkflow.matches_selector?(id: record.id, user: user, selector: Setting.get('time_accounting_selector')[:condition] || {})
+    CoreWorkflow.matches_selector?(id: record.ticket_id, user: user, selector: Setting.get('time_accounting_selector')[:condition] || {})
   end
 end