fixed #10143: Matrix 2.0 - Product maintainer accounts changed during upgrade
This commit is contained in:
parent
fea09cb7bd
commit
d47f5e1886
2 changed files with 14 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue