IDEMPIERE-2124 Extensibility issue - OSGi callouts being called before official. Peer review.

This commit is contained in:
Heng Sin Low 2014-08-21 00:11:53 +08:00
parent 543153c407
commit 97253ac9b2
1 changed files with 114 additions and 113 deletions

View File

@ -2813,12 +2813,12 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
Object oldValue = field.getOldValue(); Object oldValue = field.getOldValue();
String callout = field.getCallout(); String callout = field.getCallout();
if (callout.length() == 0)
return "";
if (log.isLoggable(Level.FINE)) log.fine(field.getColumnName() + "=" + value if (log.isLoggable(Level.FINE)) log.fine(field.getColumnName() + "=" + value
+ " (" + callout + ") - old=" + oldValue); + " (" + callout + ") - old=" + oldValue);
if (callout.length() > 0)
{
StringTokenizer st = new StringTokenizer(callout, ";,", false); StringTokenizer st = new StringTokenizer(callout, ";,", false);
while (st.hasMoreTokens()) // for each callout while (st.hasMoreTokens()) // for each callout
{ {
@ -2932,6 +2932,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
return retValue; return retValue;
} }
} // for each callout } // for each callout
}
List<IColumnCallout> callouts = Core.findCallout(getTableName(), field.getColumnName()); List<IColumnCallout> callouts = Core.findCallout(getTableName(), field.getColumnName());
if (callouts != null && !callouts.isEmpty()) { if (callouts != null && !callouts.isEmpty()) {