Skip to content

Commit

Permalink
standard sql
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon committed Oct 3, 2023
1 parent 8510ff9 commit 6e722b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/src/Workflow/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ public function getValidTransition(array $pks, int $transitionId)
$this->db->quoteName('#__workflow_transitions', 't'),
]
)
->join('INNER', $this->db->quoteName('#__workflows', 'w'))
->join('INNER', $this->db->quoteName('#__workflows', 'w'),
$this->db->quoteName('t.asset_id') . ' = ' . $this->db->quoteName('w.asset_id')
)
->join(
'LEFT',
$this->db->quoteName('#__workflow_stages', 's'),
Expand Down

0 comments on commit 6e722b2

Please sign in to comment.