This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release17.12 by this push:
     new 7c3a03c  Fixed: bug on button from catalog to party associated 
(OFBIZ-12289)
7c3a03c is described below

commit 7c3a03c16dabc7775e329f8acb18d0c9851d8f41
Author: Jacques Le Roux <[email protected]>
AuthorDate: Fri Jul 23 12:55:20 2021 +0200

    Fixed: bug on button from catalog to party associated (OFBIZ-12289)
    
    Problem when trying to access Party linked to Catalog.
    When you click on a user associated with a catalog, the framework sends you 
to
    party manager, but it's the currently logged in user that shows up in the
    party manager, not the party that you want to see.
    
    To reproduce, just go in the Catalog app, then on Catalogs, add a user to a
    catalog, and try to access it via the button.
    
    It comes from the fact that the parameter sent to the party manager via the
    link doesn't have the right syntax.
    
    Thanks: Gaetan Chaboussie
---
 applications/product/widget/catalog/ProdCatalogForms.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/product/widget/catalog/ProdCatalogForms.xml 
b/applications/product/widget/catalog/ProdCatalogForms.xml
index 7b42082..5c35c43 100644
--- a/applications/product/widget/catalog/ProdCatalogForms.xml
+++ b/applications/product/widget/catalog/ProdCatalogForms.xml
@@ -109,7 +109,7 @@ under the License.
         <field name="partyId" title="${uiLabelMap.PartyParty}">
             <display-entity entity-name="PartyNameView" 
description="${personalTitle} ${firstName} ${middleName} ${lastName} ${suffix} 
${groupName}" also-hidden="true" cache="false">
                 <sub-hyperlink target-type="inter-app" link-style="buttontext" 
target="/partymgr/control/viewprofile" description="${partyId}">
-                    <parameter param-name="party_id" from-field="partyId"/>
+                    <parameter param-name="partyId" from-field="partyId"/>
                 </sub-hyperlink>
             </display-entity>
         </field>

Reply via email to