Author: jacopoc
Date: Tue May 15 03:27:26 2007
New Revision: 538120
URL:
http://svn.apache.org/viewvc?view=rev&rev=538120Log:
Fix for the upload party content form: mimeTypeId was missing.
Modified:
ofbiz/trunk/applications/party/config/PartyUiLabels.properties
ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh
ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl
Modified: ofbiz/trunk/applications/party/config/PartyUiLabels.properties
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/config/PartyUiLabels.properties?view=diff&rev=538120&r1=538119&r2=538120==============================================================================
--- ofbiz/trunk/applications/party/config/PartyUiLabels.properties (original)
+++ ofbiz/trunk/applications/party/config/PartyUiLabels.properties Tue May 15 03:27:26 2007
@@ -473,7 +473,7 @@
PartySegmentRoles=Segment Roles
PartySegments=Segments
PartySelectPurpose=Select Purpose
-PartySelectRole=Select Role
+PartySelectMimeType=Select Mime Type
PartySelectContactType=Select Contact Type
PartySelectPurpose=Select Purpose
PartySelectRole=Select Role
Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh?view=diff&rev=538120&r1=538119&r2=538120==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh Tue May 15 03:27:26 2007
@@ -68,6 +68,9 @@
roles = delegator.findAll("RoleType", UtilMisc.toList("description", "roleTypeId"));
context.put("roles", roles);
+mimeTypes = delegator.findAll("MimeType", UtilMisc.toList("description", "mimeTypeId"));
+context.put("mimeTypes", mimeTypes);
+
relateTypes = delegator.findAll("PartyRelationshipType", UtilMisc.toList("description", "partyRelationshipTypeId"));
context.put("relateTypes", relateTypes);
Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl?view=diff&rev=538120&r1=538119&r2=538120==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl Tue May 15 03:27:26 2007
@@ -625,6 +625,12 @@
<option value="${role.roleTypeId}">${role.get("description", locale)?default(role.roleTypeId)}</option>
</#list>
</select>
+ <select name="mimeTypeId">
+ <option value="">${uiLabelMap.PartySelectMimeType}</option>
+ <#list mimeTypes as mimeType>
+ <option value="${mimeType.mimeTypeId}">${mimeType.get("description", locale)?default(mimeType.mimeTypeId)}</option>
+ </#list>
+ </select>
<input type="submit" value="${uiLabelMap.CommonUpload}"/>
</form>
</div>