From fdfa4a7b0445d41623e4889f34500b22a6049693 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 28 Sep 2009 09:56:19 +0000 Subject: [PATCH] [ 2694043 ] Query. first/firstOnly usage best practice https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2694043&group_id=176962 --- base/src/org/compiere/model/MCurrency.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MCurrency.java b/base/src/org/compiere/model/MCurrency.java index 40f0913029..8563c2c27b 100644 --- a/base/src/org/compiere/model/MCurrency.java +++ b/base/src/org/compiere/model/MCurrency.java @@ -107,7 +107,7 @@ public class MCurrency extends X_C_Currency // Try database Query query = new Query(ctx, MCurrency.Table_Name, "iso_code=?", null); query.setParameters(new Object[]{ISOcode}); - retValue = (MCurrency)query.first(); + retValue = (MCurrency)query.firstOnly(); // Save if (retValue!=null)