Fixed ugly error message when orderId is invalid; also fixed funny i18n pattern and incorrect use of a FreeMarker style ?if_exists which breaks things in the screen/form/simple-method/etc flexible string expansion stuff; now the order not found message displays properly... not sure how this stuff EVER could have worked

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@525182 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David E. Jones
2007-04-03 15:48:24 +00:00
parent c5836bc765
commit 9d28313155
3 changed files with 5 additions and 7 deletions
@@ -273,7 +273,7 @@ OrderNoGiftWrap=No Gift Wrap
OrderNoNotes=No notes for this order
OrderNoNotesForThisRequestItem=No Notes For This Request Item
OrderNoOrderAdjustments=No adjustments on this order.
OrderNoOrderFound=No Order Found
OrderNoOrderFound=No Order Found with ID
OrderNoOrderFoundForParty=No orders found for partyId
OrderNoOrderItemsToDisplay=No order items to display.
OrderNoOrderPaymentPreferences=No payment preferences associated with this order.
@@ -88,6 +88,9 @@ if (orderHeader != null) {
partyId = displayParty.getString("partyId");
context.put("displayParty", displayParty);
context.put("partyId", partyId);
List paymentMethodValueMaps = PaymentWorker.getPartyPaymentMethodValueMaps(delegator, displayParty.getString("partyId"), false);
context.put("paymentMethodValueMaps", paymentMethodValueMaps);
}
otherAdjAmount = OrderReadHelper.calcOrderAdjustments(orderHeaderAdjustments, orderSubTotal, true, false, false);
@@ -360,11 +363,6 @@ if (orderHeader != null) {
context.put("returnableItems", returnableItems);
}
if (displayParty != null) {
List paymentMethodValueMaps = PaymentWorker.getPartyPaymentMethodValueMaps(delegator, displayParty.getString("partyId"), false);
context.put("paymentMethodValueMaps", paymentMethodValueMaps);
}
if (orderHeader != null) {
// list to find all the POSTAL_ADDRESS for the party.
orderParty = delegator.findByPrimaryKey("Party", UtilMisc.toMap("partyId", partyId));
@@ -78,7 +78,7 @@ under the License.
</container>
</widgets>
<fail-widgets>
<label style="head2" text="${uiLabelMap.OrderNoOrderFound} ${uiLabelMap.CommonWith} ${uiLabelMap.CommonId}: [${orderId?if_exists}]"></label>
<label style="head2" text="${uiLabelMap.OrderNoOrderFound}: [${orderId}]"></label>
</fail-widgets>
</section>
</screen>