fix 11768 Edit Branch does not update wgaccess

I can't seem to reproduce this problem in the tests...
This commit is contained in:
Doug Bell 2010-08-10 18:21:16 -05:00
parent b45c693802
commit bd4e7a2ec0
3 changed files with 41 additions and 3 deletions

View file

@ -59,6 +59,7 @@ sub addRevision {
if ($newSelf->get("storageId") && $newSelf->get("storageId") eq $self->get('storageId')) {
my $newStorage = $self->getStorageClass->get($self->session,$self->get("storageId"))->copy;
$newSelf->update({storageId => $newStorage->getId});
$newSelf->applyConstraints;
}
return $newSelf;