You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2009/04/22 23:23:01 UTC

svn commit: r767667 - /ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml

Author: jaz
Date: Wed Apr 22 21:22:59 2009
New Revision: 767667

URL: http://svn.apache.org/viewvc?rev=767667&view=rev
Log:
fixed user preference screen, now actually allows one to change preferences

Modified:
    ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml

Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml?rev=767667&r1=767666&r2=767667&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml Wed Apr 22 21:22:59 2009
@@ -986,24 +986,24 @@
         <field name="description" title="${uiLabelMap.CommonDescription}" required-field="true"><text/></field>
         <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
     </form>
-    <form name="ListPreference" type="list" target="updatePreference?partyId=${partyId}" list-name="userPreferenceList"
+    <form name="ListPreference" type="list" target="updatePreference" list-name="userPreferenceList"
         odd-row-style="alternate-row" default-table-style="basic-table hover-bar" separate-columns="true" use-row-submit="true" >
         <row-actions>
             <service service-name="getUserPreference" result-map="values">
                 <field-map field-name="userPrefTypeId" from-field="enumId"/>
             </service>
-            <set field="partyId" from-field="values.userPrefValue"/>
-            <set field="visualThemeId" from-field="values.userPrefValue"/>
+            <set field="userPrefValue" from-field="values.userPrefValue"/>
         </row-actions>
         <field name="enumId" parameter-name="userPrefTypeId"><hidden value="${enumId}"/></field>
         <field name="enumTypeId" parameter-name="userPrefGroupTypeId"><hidden value="${enumTypeId}"/></field>
-        <field name="description" title="${uiLabelMap.CommonEmptyHeader}"><display/></field>
-        <field name="partyId" title="${uiLabelMap.CommonEmptyHeader}" use-when="enumId.equals(&quot;ORGANIZATION_PARTY&quot;)" parameter-name="userPrefValue" >
+        <field name="description" title="${uiLabelMap.CommonDescription}"><display/></field>
+        <field name="partyId"><hidden/></field>
+        <field name="userPrefValue" title="${uiLabelMap.CommonValue}" use-when="enumId.equals(&quot;ORGANIZATION_PARTY&quot;)" parameter-name="userPrefValue" >
             <drop-down current="selected" no-current-selected-key="defaultOrganizationPartyId">
                 <entity-options entity-name="PartyAcctgPrefAndGroup" description="${groupName}"/>
             </drop-down>
         </field>
-        <field name="visualThemeId" title="${uiLabelMap.CommonEmptyHeader}" use-when="enumId.equals(&quot;VISUAL_THEME&quot;)" parameter-name="userPrefValue">
+        <field name="userPrefValue" title="${uiLabelMap.CommonValue}" use-when="enumId.equals(&quot;VISUAL_THEME&quot;)" parameter-name="userPrefValue">
             <drop-down current="selected">
                 <entity-options key-field-name="visualThemeId" description="${visualThemeId} - ${description}" entity-name="VisualTheme">
                     <entity-constraint name="visualThemeSetId" operator="equals" value="BACKOFFICE"/>