little bug fixes
This commit is contained in:
parent
feda6700e0
commit
742efc3a60
3 changed files with 7 additions and 3 deletions
|
|
@ -266,6 +266,7 @@ sub addWorkflow {
|
||||||
type=>"WebGUI::VersionTag"
|
type=>"WebGUI::VersionTag"
|
||||||
}, "pbworkflow000000000003");
|
}, "pbworkflow000000000003");
|
||||||
$activity = $workflow->addActivity("WebGUI::Workflow::Activity::CommitVersionTag", "pbwfactivity0000000006");
|
$activity = $workflow->addActivity("WebGUI::Workflow::Activity::CommitVersionTag", "pbwfactivity0000000006");
|
||||||
|
$activity->set("title", "Commit Assets");
|
||||||
$workflow = WebGUI::Workflow->create($session, {
|
$workflow = WebGUI::Workflow->create($session, {
|
||||||
title=>"Commit With Approval",
|
title=>"Commit With Approval",
|
||||||
description=>"This workflow commits all the assets in this version tag after getting approval from content managers.",
|
description=>"This workflow commits all the assets in this version tag after getting approval from content managers.",
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ sub www_editCronJob {
|
||||||
);
|
);
|
||||||
my $value = $cron->get("workflowId") if defined $cron;
|
my $value = $cron->get("workflowId") if defined $cron;
|
||||||
my $type = "None";
|
my $type = "None";
|
||||||
if (defined $cron) {
|
if (defined $cron && $cron->get("className")) {
|
||||||
$type = $cron->get("className");
|
$type = $cron->get("className");
|
||||||
}
|
}
|
||||||
$f->workflow(
|
$f->workflow(
|
||||||
|
|
|
||||||
|
|
@ -230,8 +230,11 @@ sub getList {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
my $type = shift;
|
my $type = shift;
|
||||||
my $sql = "select workflowId, title from Workflow where enabled=1";
|
my $sql = "select workflowId, title from Workflow where enabled=1";
|
||||||
$sql .= " and type=?" if ($type);
|
if ($type) {
|
||||||
return $session->db->buildHashRef($sql, [$type]);
|
$sql .= " and type=?";
|
||||||
|
$type = [$type];
|
||||||
|
}
|
||||||
|
return $session->db->buildHashRef($sql, $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue