From 9cdd099d5e8cc017c20ad5d905d17bb5d7a24c15 Mon Sep 17 00:00:00 2001 From: Yung Han Khoe Date: Sat, 28 Mar 2009 20:04:20 +0000 Subject: [PATCH] fixed #9933: Matrix 2.0 - Unable to view/edit product maintainer account --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/MatrixListing.pm | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 7b1a326eb..87228076f 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -6,6 +6,7 @@ to place a small form next to each Sku that displays. Sku's with complex forms (like the EMS sku's), simply display a button to take the user to the sku's view screen for the whole form. [TEMPLATE] + - fixed #9933: Matrix 2.0 - Unable to view/edit product maintainer account 7.7.1 - the AdSku project: create a Sku that allows buyers to purchase advertising in select AdSpaces at selected priorities diff --git a/lib/WebGUI/Asset/MatrixListing.pm b/lib/WebGUI/Asset/MatrixListing.pm index 39eaf0d88..3a665e613 100644 --- a/lib/WebGUI/Asset/MatrixListing.pm +++ b/lib/WebGUI/Asset/MatrixListing.pm @@ -304,6 +304,14 @@ sub getEditForm { -hoverHelp =>$i18n->get("description description"), -value =>$self->getValue('description'), ); + if ($self->getParent->canEdit) { + $form->user( + name =>"ownerUserId", + value =>$self->getValue('ownerUserId'), + label =>$i18n->get('maintainer label'), + hoverHelp =>$i18n->get('maintainer description'), + ); + } $form->text( -name =>'version', -defaultValue =>undef,