little bug fixes
This commit is contained in:
parent
feda6700e0
commit
742efc3a60
3 changed files with 7 additions and 3 deletions
|
|
@ -230,8 +230,11 @@ sub getList {
|
|||
my $session = shift;
|
||||
my $type = shift;
|
||||
my $sql = "select workflowId, title from Workflow where enabled=1";
|
||||
$sql .= " and type=?" if ($type);
|
||||
return $session->db->buildHashRef($sql, [$type]);
|
||||
if ($type) {
|
||||
$sql .= " and type=?";
|
||||
$type = [$type];
|
||||
}
|
||||
return $session->db->buildHashRef($sql, $type);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue