Skip to content

Commit

Permalink
LEAF 4625 add explicit column names
Browse files Browse the repository at this point in the history
  • Loading branch information
aerinkayne committed Jan 22, 2025
1 parent 1b70c95 commit 81141af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LEAF_Request_Portal/sources/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,8 @@ public function getActions()
$vars = array(
':nonWorkflowActions' => implode(",", $this->nonWorkflowActions)
);
$qSQL = "SELECT * FROM actions WHERE NOT FIND_IN_SET(actionType, :nonWorkflowActions) AND deleted=0 ORDER BY actionText";
$qSQL = "SELECT `actionType`, `actionText`, `actionTextPasttense`, `actionIcon`, `actionAlignment`, `sort`, `fillDependency`, `deleted`
FROM actions WHERE NOT FIND_IN_SET(actionType, :nonWorkflowActions) AND deleted=0 ORDER BY actionText";
$res = $this->db->prepared_query($qSQL, $vars);

return $res;
Expand Down Expand Up @@ -1523,7 +1524,8 @@ public function getUserActions()
$vars = array(
':systemAction' => implode(",", $this->systemAction)
);
$qSQL = "SELECT * FROM actions WHERE NOT FIND_IN_SET(actionType, :systemAction) AND NOT (deleted = 1)";
$qSQL = "SELECT `actionType`, `actionText`, `actionTextPasttense`, `actionIcon`, `actionAlignment`, `sort`, `fillDependency`, `deleted`
FROM actions WHERE NOT FIND_IN_SET(actionType, :systemAction) AND NOT (deleted = 1)";
$res = $this->db->prepared_query($qSQL, $vars);

return $res;
Expand Down

0 comments on commit 81141af

Please sign in to comment.