Skip to content

Commit

Permalink
Remove unnecessary instance
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Jan 3, 2024
1 parent 6779de4 commit a4af7d3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.adempiere.core.domains.models.I_C_Location;
import org.adempiere.core.domains.models.I_M_AttributeSetInstance;
import org.adempiere.core.domains.models.I_S_ResourceAssignment;
import org.adempiere.core.domains.models.X_AD_Reference;
import org.compiere.model.MRefTable;
import org.compiere.model.MValRule;
import org.compiere.util.DisplayType;
Expand Down Expand Up @@ -94,9 +93,9 @@ public static List<String> getContextColumnNames(String context) {
public static ReferenceValues getReferenceDefinition(String columnName, int referenceId, int referenceValueId, int validationRuleId) {
String embeddedContextColumn = null;
if(referenceId > 0 && ReferenceUtil.isLookupReference(referenceId)) {
X_AD_Reference reference = new X_AD_Reference(Env.getCtx(), referenceId, null);
// X_AD_Reference reference = new X_AD_Reference(Env.getCtx(), referenceId, null);
Map<String, Object> referenceDetail = new HashMap<>();
referenceDetail.put("id", reference.get_ID());
referenceDetail.put("id", referenceId);
// MLookupInfo lookupInformation = null;
String tableName = getTableNameFromReference(columnName, referenceId);
// // Special references
Expand Down

0 comments on commit a4af7d3

Please sign in to comment.