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

@ -23,6 +23,7 @@
- Survey editor now keeps survey objects in a scrollable panel to keep buttons always in view.
- fixed #10198: Cannot drag assets to new positions on page
- fixed #10190: Matrix 2.0 - Strange characters in "Show Ratings" box
- fixed #10143: Matrix 2.0 - Product maintainer accounts changed during upgrade
- rfe: #10002: User Manager, view User's Profile (perlDreamer Consulting)
- rfe: #10073: Account system to be able to return XML/JSON (perlDreamer Consulting)
- Replaced the tax system with a pluggable one. Included are a Generic plugin

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,