Forward port of Workflow Activity sequencing bug. create uses count, but
delete did not reorder the existing activities. This would allow duplicate sequenceNumbers in the db. The upgrade script will resequence and fix all activities in all workflows.
This commit is contained in:
parent
67b92500cc
commit
07582c34d6
3 changed files with 25 additions and 2 deletions
|
|
@ -133,7 +133,10 @@ sub deleteActivity {
|
|||
my $self = shift;
|
||||
my $activityId = shift;
|
||||
my $activity = $self->getActivity($activityId);
|
||||
$activity->delete if ($activity);
|
||||
if ($activity) {
|
||||
$activity->delete;
|
||||
$self->reorderActivities;
|
||||
}
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue