| @@ -36,11 +36,11 @@ | ||
| 36 | 36 | |
| 37 | 37 | public function getActionsByConditionId(int $id): array |
| 38 | 38 | { |
| 39 | 39 | $actions = acym_loadObjectList( |
| 40 | - 'SELECT action.* | |
| 41 | - FROM #__acym_action as action | |
| 42 | - WHERE action.condition_id = '.intval($id) | |
| 40 | + 'SELECT * | |
| 41 | + FROM #__acym_action | |
| 42 | + WHERE condition_id = '.intval($id) | |
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | 45 | array_map([$this, 'fixTypes'], $actions); |
| 46 | 46 | |
| @@ -115,9 +115,9 @@ | ||
| 115 | 115 | JOIN `#__acym_condition` AS `condition` |
| 116 | 116 | ON `action`.`condition_id` = `condition`.`id` |
| 117 | 117 | JOIN `#__acym_step` AS `step` |
| 118 | 118 | ON `condition`.`step_id` = `step`.`id` |
| 119 | - WHERE `step`.`automation_id` = '.$id | |
| 119 | + WHERE `step`.`automation_id` = '.intval($id) | |
| 120 | 120 | ); |
| 121 | 121 | array_map([$this, 'fixTypes'], $actions); |
| 122 | 122 | |
| 123 | 123 | return $actions; |