Hi,

Attachments are not allowed, so here is the patch in body for the following 
jira. 
It is not really big so if a comiter can apply it, I would be really graceful.

Le mercredi 05 août 2009 à 05:12 -0700, matthieu bollot (JIRA) a écrit :
> [ 
> https://issues.apache.org/jira/browse/OFBIZ-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>  ]
> 
> matthieu bollot updated OFBIZ-2796:
> -----------------------------------
> 
>     Attachment: PartyTrees.patch
> 
> This patch should do the trick
> 
> > human res main page
> > -------------------
> >
> >                 Key: OFBIZ-2796
> >                 URL: https://issues.apache.org/jira/browse/OFBIZ-2796
> >             Project: OFBiz
> >          Issue Type: Bug
> >          Components: humanres
> >    Affects Versions: SVN trunk
> >         Environment: Should be everywhere
> >            Reporter: matthieu bollot
> >         Attachments: PartyTrees.patch
> >
> >
> > The main human resource page ( https://localhost:8443/humanres/control/main 
> > ) is not displayed correctly, the tree is completely broken
> 

Index: applications/humanres/widget/PartyTrees.xml
===================================================================
--- applications/humanres/widget/PartyTrees.xml (revision 800740)
+++ applications/humanres/widget/PartyTrees.xml (copie de travail)
@@ -20,10 +20,12 @@
 <trees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-tree.xsd";>
 
-    <tree name="OrgTree" root-node-name="node-root" 
entity-name="PartyAndGroup" open-depth="1">
+    <tree name="OrgTree" root-node-name="node-root" 
entity-name="PartyAndGroup">
         <node name="node-root" entity-name="PartyAndGroup" 
render-style="expand-collapse">
             <entity-one entity-name="PartyAndGroup" 
value-field="partyAndGroup"/>
-            <include-screen 
name="PartyGroupTreeLine"location="component://humanres/widget/CommonScreens.xml"/>
+            <link target="viewprofile" text="${partyAndGroup.groupName}" >
+              <parameter param-name="partyId"/>
+            </link>
             <sub-node node-name="internalOrg-list">
                 <entity-condition entity-name="PartyRelationship" 
filter-by-date="true">
                     <condition-list combine="and">
@@ -37,7 +39,9 @@
             <entity-one entity-name="PartyAndGroup" 
value-field="partyAndGroup">
                 <field-map field-name="partyId" 
from-field="partyRelationship.partyIdTo"/>
             </entity-one>
-            <include-screen name="PartyGroupTreeLine" 
location="component://humanres/widget/CommonScreens.xml"/>
+            <link target="viewprofile" text="${partyAndGroup.groupName}" >
+              <parameter param-name="partyId" 
from-field="partyRelationship.partyIdTo"/>
+            </link>
             <sub-node node-name="employee-list">
                 <entity-condition entity-name="Employment" 
filter-by-date="true">
                     <condition-list combine="and">


Reply via email to