Check that the Purge workflow exists before trying to run it. Fixes bug #11698
This commit is contained in:
parent
db96547f3c
commit
61008c8bb8
2 changed files with 11 additions and 5 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
- fixed #11693: Shopping cart does not show for visitor user
|
- fixed #11693: Shopping cart does not show for visitor user
|
||||||
- fixed: missing per-item template variables for the cart.
|
- fixed: missing per-item template variables for the cart.
|
||||||
- fixed #11696: WebGUI 7.9.8 gotcha
|
- fixed #11696: WebGUI 7.9.8 gotcha
|
||||||
|
- fixed #11698: Trash dies on missing or bad workflow
|
||||||
|
|
||||||
7.9.8
|
7.9.8
|
||||||
- fixed #11651: First Day of Week is a string...
|
- fixed #11651: First Day of Week is a string...
|
||||||
|
|
|
||||||
|
|
@ -298,11 +298,16 @@ sub _invokeWorkflowOnExportedFiles {
|
||||||
if ($workflowId) {
|
if ($workflowId) {
|
||||||
my ($lastExportedAs) = $self->get("lastExportedAs");
|
my ($lastExportedAs) = $self->get("lastExportedAs");
|
||||||
my $wfInstance = WebGUI::Workflow::Instance->create($self->session, { workflowId => $workflowId });
|
my $wfInstance = WebGUI::Workflow::Instance->create($self->session, { workflowId => $workflowId });
|
||||||
$wfInstance->setScratch(
|
if ($wfInstance) {
|
||||||
WebGUI::Workflow::Activity::DeleteExportedFiles::DELETE_FILES_SCRATCH() =>
|
$wfInstance->setScratch(
|
||||||
Storable::freeze([ defined($lastExportedAs) ? ($lastExportedAs) : () ])
|
WebGUI::Workflow::Activity::DeleteExportedFiles::DELETE_FILES_SCRATCH() =>
|
||||||
);
|
Storable::freeze([ defined($lastExportedAs) ? ($lastExportedAs) : () ])
|
||||||
$wfInstance->start(1);
|
);
|
||||||
|
$wfInstance->start(1);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$self->session->log->warn('The Purge Workflow from the settings has been deleted and cannot be run.');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue