IDEMPIERE-3282 - recent itens with incorrect label

This commit is contained in:
Murilo Habermann Torquato 2017-01-14 10:36:21 -02:00
parent 16f4f75364
commit 2d14bf3ba2
1 changed files with 6 additions and 6 deletions

View File

@ -303,11 +303,11 @@ public class MRecentItem extends X_AD_RecentItem
}
if (recordIdentifier.length() == 0) {
if (po.get_ColumnIndex("DocumentNo") > 0)
if (po.get_ColumnIndex("DocumentNo") != -1)
recordIdentifier.append(" ").append(po.get_ValueAsString("DocumentNo"));
if (po.get_ColumnIndex("Value") > 0)
if (po.get_ColumnIndex("Value") != -1)
recordIdentifier.append(" ").append(po.get_ValueAsString("Value"));
if (po.get_ColumnIndex("Name") > 0)
if (po.get_ColumnIndex("Name") != -1)
recordIdentifier.append(" ").append(po.get_ValueAsString("Name"));
if (recordIdentifier.length() == 0)
recordIdentifier.append(" ").append(po.toString());