Peer review 11501, be careful with the login being replaced

Remove SQL code and Replace for Query
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883
This commit is contained in:
Carlos Ruiz 2010-02-27 19:38:25 +00:00
parent 4a552b9877
commit 94812caebc
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ public class MRequestType extends X_R_RequestType
MRequestType retValue = new Query(ctx, I_R_RequestType.Table_Name, whereClause, null)
.setOrderBy("IsDefault DESC, AD_Client_ID DESC")
.first();
if (retValue != null && !retValue.isDefault())
retValue = null;
return retValue;
} // get