Lines Tab read only on new doc after completing
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3033485 globalqss -> Integrating fix for annoying bug from http://adempiere.svn.sourceforge.net/viewvc/adempiere?view=revision&revision=13343
This commit is contained in:
parent
c58e6f00c0
commit
45200670fb
|
@ -613,6 +613,8 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
||||||
{
|
{
|
||||||
if (!m_loadComplete) initTab(false);
|
if (!m_loadComplete) initTab(false);
|
||||||
|
|
||||||
|
Env.clearTabContext(m_vo.ctx, m_vo.WindowNo, m_vo.TabNo);
|
||||||
|
|
||||||
log.fine("#" + m_vo.TabNo
|
log.fine("#" + m_vo.TabNo
|
||||||
+ " - Only Current Rows=" + onlyCurrentRows
|
+ " - Only Current Rows=" + onlyCurrentRows
|
||||||
+ ", Days=" + onlyCurrentDays + ", Detail=" + isDetail());
|
+ ", Days=" + onlyCurrentDays + ", Detail=" + isDetail());
|
||||||
|
|
|
@ -1210,6 +1210,30 @@ public final class Env
|
||||||
}
|
}
|
||||||
} // clearWinContext
|
} // clearWinContext
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clean up context for Window Tab (i.e. delete it).
|
||||||
|
* Please note that this method is not clearing the tab info context (i.e. _TabInfo).
|
||||||
|
* @param ctx context
|
||||||
|
* @param WindowNo window
|
||||||
|
* @param TabNo tab
|
||||||
|
*/
|
||||||
|
public static void clearTabContext(Properties ctx, int WindowNo, int TabNo)
|
||||||
|
{
|
||||||
|
if (ctx == null)
|
||||||
|
throw new IllegalArgumentException ("Require Context");
|
||||||
|
//
|
||||||
|
Object[] keys = ctx.keySet().toArray();
|
||||||
|
for (int i = 0; i < keys.length; i++)
|
||||||
|
{
|
||||||
|
String tag = keys[i].toString();
|
||||||
|
if (tag.startsWith(WindowNo+"|"+TabNo+"|")
|
||||||
|
&& !tag.startsWith(WindowNo+"|"+TabNo+"|_TabInfo"))
|
||||||
|
{
|
||||||
|
ctx.remove(keys[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clean up all context (i.e. delete it)
|
* Clean up all context (i.e. delete it)
|
||||||
* @param ctx context
|
* @param ctx context
|
||||||
|
|
Loading…
Reference in New Issue