Login  Register

svn commit: r1340823 - in /ofbiz/branches/release11.04: ./ applications/commonext/widget/ofbizsetup/ProfileScreens.xml applications/commonext/widget/ofbizsetup/SetupScreens.xml applications/party/widget/partymgr/PartyScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

svn commit: r1340823 - in /ofbiz/branches/release11.04: ./ applications/commonext/widget/ofbizsetup/ProfileScreens.xml applications/commonext/widget/ofbizsetup/SetupScreens.xml applications/party/widget/partymgr/PartyScreens.xml

jleroux@apache.org
14119 posts
Author: jleroux
Date: Sun May 20 20:22:41 2012
New Revision: 1340823

URL: http://svn.apache.org/viewvc?rev=1340823&view=rev
Log:
"Applied fix from trunk for revision: 1340821  "
------------------------------------------------------------------------
r1340821 | jleroux | 2012-05-20 22:21:06 +0200 (dim., 20 mai 2012) | 12 lines

A patch from Daniel Riquelme "sessionAttributes doesn't work from screen widget" https://issues.apache.org/jira/browse/OFBIZ-4669

Reported by Kiran:
In the screen widget, add a set action that refers to sessionAttributes, it doesn't work.

e.g: Following doesn't work:
<set field="titleProperty" value="${sessionAttributes.autoName}"/>

Following works:
<set field="titleProperty" from-field="autoName" from-scope="user"/>


------------------------------------------------------------------------


Modified:
    ofbiz/branches/release11.04/   (props changed)
    ofbiz/branches/release11.04/applications/commonext/widget/ofbizsetup/ProfileScreens.xml
    ofbiz/branches/release11.04/applications/commonext/widget/ofbizsetup/SetupScreens.xml
    ofbiz/branches/release11.04/applications/party/widget/partymgr/PartyScreens.xml

Propchange: ofbiz/branches/release11.04/
------------------------------------------------------------------------------
  Merged /ofbiz/trunk:r1340821

Modified: ofbiz/branches/release11.04/applications/commonext/widget/ofbizsetup/ProfileScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release11.04/applications/commonext/widget/ofbizsetup/ProfileScreens.xml?rev=1340823&r1=1340822&r2=1340823&view=diff
==============================================================================
--- ofbiz/branches/release11.04/applications/commonext/widget/ofbizsetup/ProfileScreens.xml (original)
+++ ofbiz/branches/release11.04/applications/commonext/widget/ofbizsetup/ProfileScreens.xml Sun May 20 20:22:41 2012
@@ -34,7 +34,7 @@
                 </entity-condition>
                 <set field="partyId" from-field="parties[0].partyId"/>
                 <set field="customerPartyId" from-field="customerRel.partyIdFrom"/>
-                <set field="previousParams" from-field="sessionAttributes._PREVIOUS_PARAMS_"/>
+                <set field="previousParams" from-field="_PREVIOUS_PARAMS_" from-scope="user"/>
                 <property-to-field field="defaultCountryGeoId" resource="general" property="country.geo.id.default" default="USA"/>
             </actions>
             <widgets>

Modified: ofbiz/branches/release11.04/applications/commonext/widget/ofbizsetup/SetupScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release11.04/applications/commonext/widget/ofbizsetup/SetupScreens.xml?rev=1340823&r1=1340822&r2=1340823&view=diff
==============================================================================
--- ofbiz/branches/release11.04/applications/commonext/widget/ofbizsetup/SetupScreens.xml (original)
+++ ofbiz/branches/release11.04/applications/commonext/widget/ofbizsetup/SetupScreens.xml Sun May 20 20:22:41 2012
@@ -27,7 +27,7 @@
                 <set field="tabButtonItemTop" value="organization"/>
                 <set field="titleProperty" value="SetupCreateNewOrganization"/>
                 <set field="target" value="createOrganization"/>
-                <set field="previousParams" from-field="sessionAttributes._PREVIOUS_PARAMS_"/>
+                <set field="previousParams" from-field="_PREVIOUS_PARAMS_" from-scope="user"/>
                 <property-to-field field="defaultCountryGeoId" resource="general" property="country.geo.id.default" default="USA"/>
                 <entity-condition entity-name="PartyRole" list="parties">
                     <condition-expr field-name="roleTypeId" operator="equals" value="INTERNAL_ORGANIZATIO"/>

Modified: ofbiz/branches/release11.04/applications/party/widget/partymgr/PartyScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release11.04/applications/party/widget/partymgr/PartyScreens.xml?rev=1340823&r1=1340822&r2=1340823&view=diff
==============================================================================
--- ofbiz/branches/release11.04/applications/party/widget/partymgr/PartyScreens.xml (original)
+++ ofbiz/branches/release11.04/applications/party/widget/partymgr/PartyScreens.xml Sun May 20 20:22:41 2012
@@ -696,7 +696,7 @@ under the License.
                 <set field="titleProperty" value="PartyCreateNewCustomer"/>
                 <set field="headerItem" value="find"/>
                 <set field="target" value="createCustomer"/>
-                <set field="previousParams" from-field="sessionAttributes._PREVIOUS_PARAMS_"/>
+                <set field="previousParams" from-field="_PREVIOUS_PARAMS_" from-scope="user"/>
                 <property-to-field field="defaultCountryGeoId" resource="general" property="country.geo.id.default" default="USA"/>
             </actions>
             <widgets>
@@ -742,7 +742,7 @@ under the License.
                 <set field="headerItem" value="find"/>
                 <set field="displayPassword" value="Y"/>
                 <set field="target" value="createProspect"/>
-                <set field="previousParams" from-field="sessionAttributes._PREVIOUS_PARAMS_"/>
+                <set field="previousParams" from-field="_PREVIOUS_PARAMS_" from-scope="user"/>
             </actions>
             <widgets>
                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
@@ -787,7 +787,7 @@ under the License.
                 <set field="headerItem" value="find"/>
                 <set field="displayPassword" value="Y"/>
                 <set field="target" value="createEmployee"/>
-                <set field="previousParams" from-field="sessionAttributes._PREVIOUS_PARAMS_"/>
+                <set field="previousParams" from-field="_PREVIOUS_PARAMS_" from-scope="user"/>
             </actions>
             <widgets>
                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">