svn commit: r1768779 - /ofbiz/trunk/specialpurpose/example/entitydef/entitymodel_view.xml

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

svn commit: r1768779 - /ofbiz/trunk/specialpurpose/example/entitydef/entitymodel_view.xml

jleroux@apache.org
Author: jleroux
Date: Tue Nov  8 20:36:12 2016
New Revision: 1768779

URL: http://svn.apache.org/viewvc?rev=1768779&view=rev
Log:
Fixed: Search operation on 'AllExamplesWithDesiredCustomerFeaturesReport' entity
 causing exception
(OFBIZ-8822)

Steps to regenerate:
1. Go to Entity Data Maintenance in webtools
2. Search entity 'AllExamplesWithDesiredCustomerFeaturesReport'.
Click and go to the overview page.
3. Click on the Search button.

Thanks: to Pritam Kute for report and Pallavi Goyal for patch

Modified:
    ofbiz/trunk/specialpurpose/example/entitydef/entitymodel_view.xml

Modified: ofbiz/trunk/specialpurpose/example/entitydef/entitymodel_view.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/example/entitydef/entitymodel_view.xml?rev=1768779&r1=1768778&r2=1768779&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/example/entitydef/entitymodel_view.xml (original)
+++ ofbiz/trunk/specialpurpose/example/entitydef/entitymodel_view.xml Tue Nov  8 20:36:12 2016
@@ -102,8 +102,8 @@ under the License.
         <alias-all entity-alias="EFAAFV"/>
         <entity-condition>
             <condition-list combine="and">
-                <condition-expr field-name="exampleTypeId" value="CONTRIVED"/>
-                <condition-expr field-name="exampleFeatureApplTypeId" value="REQUIRED"/>
+                <condition-expr entity-alias="EFAAFV" field-name="exampleTypeId" operator="equals" value="CONTRIVED"/>
+                <condition-expr entity-alias="EFAAFV" field-name="exampleFeatureApplTypeId" operator="equals" value="REQUIRED"/>
             </condition-list>
             <order-by field-name="exampleName"/>
         </entity-condition>
@@ -122,7 +122,7 @@ under the License.
             <key-map field-name="exampleFeatureApplTypeId"/>
         </view-link>
         <entity-condition>
-            <condition-expr field-name="exampleFeatureApplTypeId" value="DESIRED"/>
+            <condition-expr entity-alias="EXFTAPTP" field-name="exampleFeatureApplTypeId" operator="equals" value="DESIRED"/>
         </entity-condition>
     </view-entity>
     <view-entity entity-name="AllExamplesWithDesiredCustomerFeaturesReport" package-name="org.apache.ofbiz.example.example">
@@ -142,7 +142,7 @@ under the License.
             <key-map field-name="exampleId"/>
         </view-link>
         <entity-condition>
-            <condition-expr field-name="featureSourceEnumId" value="EXFTSRC_CUSTOMER"/>
+            <condition-expr entity-alias="EXFT" field-name="featureSourceEnumId" operator="equals" value="EXFTSRC_CUSTOMER"/>
             <order-by field-name="exampleName"/>
         </entity-condition>
     </view-entity>