You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2014/06/21 15:36:50 UTC

svn commit: r1604370 - /ofbiz/trunk/framework/common/entitydef/entitymodel.xml

Author: jleroux
Date: Sat Jun 21 13:36:49 2014
New Revision: 1604370

URL: http://svn.apache.org/r1604370
Log:
A patch from Pierre Smits for "field type emailType is missing in entity EmailTemplateSetting" https://issues.apache.org/jira/browse/OFBIZ-5660

The field email type is missing. Thus it is not possible to categorize and filter emailsettingtemplates data.

Modified:
    ofbiz/trunk/framework/common/entitydef/entitymodel.xml

Modified: ofbiz/trunk/framework/common/entitydef/entitymodel.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/entitydef/entitymodel.xml?rev=1604370&r1=1604369&r2=1604370&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/framework/common/entitydef/entitymodel.xml Sat Jun 21 13:36:49 2014
@@ -75,6 +75,7 @@ under the License.
 
     <entity entity-name="EmailTemplateSetting" package-name="org.ofbiz.common.email" title="Email Template Setting Entity">
         <field name="emailTemplateSettingId" type="id-ne"></field>
+        <field name="emailType" type="id-ne"></field>
         <field name="description" type="description"></field>
         <field name="bodyScreenLocation" type="long-varchar"><description>if empty defaults to a screen based on the emailType</description></field>
         <field name="xslfoAttachScreenLocation" type="long-varchar"><description>if specified is used to generate XSL:FO that is transformed to a PDF via Apache FOP and attached to the email</description></field>
@@ -84,6 +85,9 @@ under the License.
         <field name="subject" type="comment"></field>
         <field name="contentType" type="long-varchar"></field>
         <prim-key field="emailTemplateSettingId"/>
+        <relation type="one" fk-name="EMAILSET_ENUM" rel-entity-name="Enumeration">
+            <key-map field-name="emailType" rel-field-name="enumId"/>
+        </relation>
     </entity>
 
   <!-- ========================================================= -->