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 2007/10/22 17:21:40 UTC

svn commit: r587128 - in /ofbiz/trunk/applications/ecommerce/webapp/ecommerce: WEB-INF/actions/customer/viewprofile.bsh customer/viewprofile.ftl

Author: jaz
Date: Mon Oct 22 08:21:39 2007
New Revision: 587128

URL: http://svn.apache.org/viewvc?rev=587128&view=rev
Log:
changed party content in ecommerce to use the new party content type features

Modified:
    ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/viewprofile.bsh
    ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl

Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/viewprofile.bsh
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/viewprofile.bsh?rev=587128&r1=587127&r2=587128&view=diff
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/viewprofile.bsh (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/viewprofile.bsh Mon Oct 22 08:21:39 2007
@@ -72,8 +72,8 @@
     mimeTypes = delegator.findAll("MimeType", UtilMisc.toList("description", "mimeTypeId"));
     context.put("mimeTypes", mimeTypes);
 
-    contentPurposes = delegator.findByAnd("Enumeration", UtilMisc.toMap("enumTypeId", "PTYCNT_PRP"), UtilMisc.toList("sequenceId"));
-    context.put("contentPurposes", contentPurposes);
+    partyContentTypes = delegator.findAll("PartyContentType", UtilMisc.toList("description"));
+    context.put("partyContentTypes", partyContentTypes);
 
     // call the getOrderedSummaryInformation service to get the sub-total of valid orders in last X months
     monthsToInclude = new Integer(12);

Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl?rev=587128&r1=587127&r2=587128&view=diff
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl Mon Oct 22 08:21:39 2007
@@ -442,10 +442,10 @@
             <input type="hidden" name="statusId" value="CTNT_PUBLISHED"/>
             <input type="hidden" name="roleTypeId" value="OWNER"/>
             <input type="file" name="uploadedFile" size="50" class="inputBox"/>
-            <select name="contentPurposeEnumId" class="selectBox">
+            <select name="partyContentTypeId" class="selectBox">
               <option value="">${uiLabelMap.PartySelectPurpose}</option>
-              <#list contentPurposes as contentPurpose>
-                <option value="${contentPurpose.enumId}">${contentPurpose.get("description", locale)?default(contentPurpose.enumId)}</option>          
+              <#list partyContentTypes as partyContentType>
+                <option value="${partyContentType.partyContentTypeId}">${partyContentType.get("description", locale)?default(partyContentType.partyContentTypeId)}</option>          
               </#list>
             </select>
             <select name="mimeTypeId" class="selectBox">