You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2021/07/23 10:57:00 UTC

[ofbiz-framework] branch trunk updated: Fixed: bug on button from catalog to party associated (OFBIZ-12289)

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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new 064c956  Fixed: bug on button from catalog to party associated (OFBIZ-12289)
064c956 is described below

commit 064c956fab4565fac1ab3ff5ec9ce4cea86b545f
Author: Jacques Le Roux <ja...@les7arts.com>
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 56b98fc..5e3e7c5 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>