Author: jleroux
Date: Sat Oct 14 12:35:28 2006
New Revision: 463998
URL:
http://svn.apache.org/viewvc?view=rev&rev=463998Log:
Corrects a bug which appeared while searching for a wrong order ID (no check on partyId was done).
This does not resolves all the problem : the screen after is not complete but most better than a bug.
Modified:
incubator/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh
Modified: incubator/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh?view=diff&rev=463998&r1=463997&r2=463998==============================================================================
--- incubator/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh (original)
+++ incubator/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh Sat Oct 14 12:35:28 2006
@@ -358,5 +358,7 @@
context.put("returnableItems", returnableItems);
}
-List paymentMethodValueMaps = PaymentWorker.getPartyPaymentMethodValueMaps(delegator, partyId, false);
-context.put("paymentMethodValueMaps", paymentMethodValueMaps);
+if (displayParty != null) {
+ List paymentMethodValueMaps = PaymentWorker.getPartyPaymentMethodValueMaps(delegator, assignPartyId, false);
+ context.put("paymentMethodValueMaps", paymentMethodValueMaps);
+}
\ No newline at end of file