fixed #10143: Matrix 2.0 - Product maintainer accounts changed during upgrade

This commit is contained in:
Yung Han Khoe 2009-04-18 20:47:48 +00:00
parent fea09cb7bd
commit d47f5e1886
2 changed files with 14 additions and 0 deletions

View file

@ -312,6 +312,19 @@ sub getEditForm {
hoverHelp =>$i18n->get('maintainer description'),
);
}
else{
my $userId;
if ($func eq "add"){
$userId = $session->user->userId;
}
else{
$userId = $self->get('ownerUserId');
}
$form->hidden(
-name =>'ownerUserId',
-value =>$userId,
);
}
$form->text(
-name =>'version',
-defaultValue =>undef,