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:
Colin Kuskie 2007-06-20 04:43:11 +00:00
parent 67b92500cc
commit 07582c34d6
3 changed files with 25 additions and 2 deletions

View file

@ -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;
}
}
#-------------------------------------------------------------------