Closes "Request Content delete operation is not working" https://issues.apache.org/jira/browse/OFBIZ-4707
There were simply no checks on thruDate in screen actions, also true for Project Manager and Scrum components. Also where we see that we clearly miss a kind of factorization in those screen actions (same block changed 5 times), no time for that tonight... git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1291472 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -121,13 +121,21 @@ under the License.
|
||||
<entity-and entity-name="CustRequestContent" list="custRequestContents" filter-by-date="true">
|
||||
<field-map field-name="custRequestId" from-field="custRequestId"/>
|
||||
</entity-and>
|
||||
<entity-and entity-name="CustRequestAndContent" list="custRequestAndContents">
|
||||
<field-map field-name="custRequestId" from-field="custRequestId"/>
|
||||
</entity-and>
|
||||
<entity-condition entity-name="CustRequestAndContent" list="custRequestAndContents">
|
||||
<condition-list combine="and">
|
||||
<condition-expr field-name="custRequestId" from-field="custRequestId"/>
|
||||
<condition-expr field-name="fromDate" operator="less-equals" from-field="nowTimestamp"/>
|
||||
<condition-list combine="or">
|
||||
<condition-expr field-name="thruDate" operator="greater-equals" from-field="nowTimestamp"/>
|
||||
<condition-expr field-name="thruDate" from-field="null"/>
|
||||
</condition-list>
|
||||
</condition-list>
|
||||
<order-by field-name="fromDate"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<decorator-section name="body">
|
||||
<container style="lefthalf">
|
||||
<screenlet title="${uiLabelMap.OrderRequestInformation}">
|
||||
<include-form name="requestInfo" location="component://order/widget/ordermgr/CustRequestForms.xml"/>
|
||||
|
||||
@@ -699,10 +699,17 @@ under the License.
|
||||
<entity-one entity-name="Product" value-field="productMap">
|
||||
<field-map field-name="productId" from-field="parameters.productId"/>
|
||||
</entity-one>
|
||||
<entity-and entity-name="CustRequestAndContent" list="custRequestAndContents">
|
||||
<field-map field-name="custRequestId" from-field="custRequestId"/>
|
||||
<field-map field-name="thruDate" value=""></field-map>
|
||||
</entity-and>
|
||||
<entity-condition entity-name="CustRequestAndContent" list="custRequestAndContents">
|
||||
<condition-list combine="and">
|
||||
<condition-expr field-name="custRequestId" from-field="custRequestId"/>
|
||||
<condition-expr field-name="fromDate" operator="less-equals" from-field="nowTimestamp"/>
|
||||
<condition-list combine="or">
|
||||
<condition-expr field-name="thruDate" operator="greater-equals" from-field="nowTimestamp"/>
|
||||
<condition-expr field-name="thruDate" from-field="null"/>
|
||||
</condition-list>
|
||||
</condition-list>
|
||||
<order-by field-name="fromDate"/>
|
||||
</entity-condition>
|
||||
<entity-and entity-name="CustRequestAndCustRequestItem" list="categoryList">
|
||||
<field-map field-name="productId" from-field="parameters.productId"/>
|
||||
<field-map field-name="custRequestTypeId" value="RF_PARENT_BACKLOG"/>
|
||||
@@ -1019,10 +1026,17 @@ under the License.
|
||||
<set field="contentId" from-field="parameters.contentId"/>
|
||||
<set field="custRequestId" from-field="parameters.custRequestId"/>
|
||||
<set field="productId" from-field="parameters.productId"/>
|
||||
<entity-and entity-name="CustRequestAndContent" list="custRequestAndContents">
|
||||
<field-map field-name="custRequestId" from-field="custRequestId"/>
|
||||
<field-map field-name="thruDate" value=""></field-map>
|
||||
</entity-and>
|
||||
<entity-condition entity-name="CustRequestAndContent" list="custRequestAndContents">
|
||||
<condition-list combine="and">
|
||||
<condition-expr field-name="custRequestId" from-field="custRequestId"/>
|
||||
<condition-expr field-name="fromDate" operator="less-equals" from-field="nowTimestamp"/>
|
||||
<condition-list combine="or">
|
||||
<condition-expr field-name="thruDate" operator="greater-equals" from-field="nowTimestamp"/>
|
||||
<condition-expr field-name="thruDate" from-field="null"/>
|
||||
</condition-list>
|
||||
</condition-list>
|
||||
<order-by field-name="fromDate"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonScrumProductBacklogItemDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
|
||||
Reference in New Issue
Block a user