hg merge release-2.0 (merge release2 into development)
This commit is contained in:
commit
bf9bc38aa1
|
@ -0,0 +1,16 @@
|
||||||
|
SET SQLBLANKLINES ON
|
||||||
|
SET DEFINE OFF
|
||||||
|
|
||||||
|
-- Dec 26, 2013 12:22:23 PM MYT
|
||||||
|
-- IDEMPIERE-1644 Length 22 for AD_PrintFormatItem.FormatPattern is too short
|
||||||
|
UPDATE AD_Column SET FieldLength=60,Updated=TO_DATE('2013-12-26 12:22:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56351
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 26, 2013 12:22:34 PM MYT
|
||||||
|
-- IDEMPIERE-1644 Length 22 for AD_PrintFormatItem.FormatPattern is too short
|
||||||
|
ALTER TABLE AD_PrintFormatItem MODIFY FormatPattern VARCHAR2(60) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201312260552_IDEMPIERE-1644.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
-- Dec 26, 2013 12:22:23 PM MYT
|
||||||
|
-- IDEMPIERE-1644 Length 22 for AD_PrintFormatItem.FormatPattern is too short
|
||||||
|
UPDATE AD_Column SET FieldLength=60,Updated=TO_TIMESTAMP('2013-12-26 12:22:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56351
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 26, 2013 12:22:34 PM MYT
|
||||||
|
-- IDEMPIERE-1644 Length 22 for AD_PrintFormatItem.FormatPattern is too short
|
||||||
|
INSERT INTO t_alter_column values('ad_printformatitem','FormatPattern','VARCHAR(60)',null,'NULL')
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201312260552_IDEMPIERE-1644.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -280,7 +280,7 @@ public class MRecentItem extends X_AD_RecentItem
|
||||||
String windowName;
|
String windowName;
|
||||||
MWindow win = MWindow.get(getCtx(), getAD_Window_ID());
|
MWindow win = MWindow.get(getCtx(), getAD_Window_ID());
|
||||||
MUserDefWin userDef = MUserDefWin.getBestMatch(getCtx(), getAD_Window_ID());
|
MUserDefWin userDef = MUserDefWin.getBestMatch(getCtx(), getAD_Window_ID());
|
||||||
if (userDef != null) {
|
if (userDef != null && !Util.isEmpty(userDef.getName())) {
|
||||||
windowName = userDef.getName();
|
windowName = userDef.getName();
|
||||||
} else {
|
} else {
|
||||||
windowName = win.get_Translation("Name");
|
windowName = win.get_Translation("Name");
|
||||||
|
|
|
@ -26,6 +26,7 @@ import java.util.Map.Entry;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.adempiere.base.Core;
|
import org.adempiere.base.Core;
|
||||||
|
import org.adempiere.exceptions.AdempiereException;
|
||||||
import org.adempiere.webui.AdempiereIdGenerator;
|
import org.adempiere.webui.AdempiereIdGenerator;
|
||||||
import org.adempiere.webui.AdempiereWebUI;
|
import org.adempiere.webui.AdempiereWebUI;
|
||||||
import org.adempiere.webui.LayoutUtils;
|
import org.adempiere.webui.LayoutUtils;
|
||||||
|
@ -614,17 +615,14 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
||||||
if (gridTab.isTreeTab() && treePanel != null) {
|
if (gridTab.isTreeTab() && treePanel != null) {
|
||||||
int AD_Tree_ID = Env.getContextAsInt (Env.getCtx(), getWindowNo(), "AD_Tree_ID", true);
|
int AD_Tree_ID = Env.getContextAsInt (Env.getCtx(), getWindowNo(), "AD_Tree_ID", true);
|
||||||
int AD_Tree_ID_Default = MTree.getDefaultAD_Tree_ID (Env.getAD_Client_ID(Env.getCtx()), gridTab.getKeyColumnName());
|
int AD_Tree_ID_Default = MTree.getDefaultAD_Tree_ID (Env.getAD_Client_ID(Env.getCtx()), gridTab.getKeyColumnName());
|
||||||
if (gridTab.getRecord_ID() >= 0) {
|
|
||||||
if (AD_Tree_ID != 0) {
|
if (AD_Tree_ID != 0) {
|
||||||
treePanel.initTree(AD_Tree_ID, windowNo);
|
treePanel.initTree(AD_Tree_ID, windowNo);
|
||||||
Events.echoEvent(ON_DEFER_SET_SELECTED_NODE, this, null);
|
Events.echoEvent(ON_DEFER_SET_SELECTED_NODE, this, null);
|
||||||
} else if (AD_Tree_ID_Default != 0) {
|
} else if (AD_Tree_ID_Default != 0) {
|
||||||
treePanel.initTree(AD_Tree_ID_Default, windowNo);
|
treePanel.initTree(AD_Tree_ID_Default, windowNo);
|
||||||
Events.echoEvent(ON_DEFER_SET_SELECTED_NODE, this, null);
|
Events.echoEvent(ON_DEFER_SET_SELECTED_NODE, this, null);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
treePanel.getTree().clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gridTab.isSingleRow() && !isGridView())
|
if (!gridTab.isSingleRow() && !isGridView())
|
||||||
|
@ -1144,7 +1142,11 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
||||||
{
|
{
|
||||||
if (nodeID > 0 && logger.isLoggable(Level.WARNING))
|
if (nodeID > 0 && logger.isLoggable(Level.WARNING))
|
||||||
logger.log(Level.WARNING, "Tab does not have ID with Node_ID=" + nodeID);
|
logger.log(Level.WARNING, "Tab does not have ID with Node_ID=" + nodeID);
|
||||||
return;
|
if (gridTab.getCurrentRow() >= 0)
|
||||||
|
{
|
||||||
|
gridTab.setCurrentRow(gridTab.getCurrentRow(), true);
|
||||||
|
}
|
||||||
|
throw new AdempiereException(Msg.getMsg(Env.getCtx(),"RecordIsNotInCurrentSearch"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Navigate to node row
|
// Navigate to node row
|
||||||
|
@ -1228,26 +1230,21 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
||||||
if (refresh)
|
if (refresh)
|
||||||
{
|
{
|
||||||
int AD_Tree_ID = Env.getContextAsInt (Env.getCtx(), getWindowNo(), "AD_Tree_ID", true);
|
int AD_Tree_ID = Env.getContextAsInt (Env.getCtx(), getWindowNo(), "AD_Tree_ID", true);
|
||||||
if (gridTab.getRecord_ID()>=0)
|
|
||||||
{
|
if (AD_Tree_ID != 0)
|
||||||
if (AD_Tree_ID != 0)
|
{
|
||||||
{
|
if (treePanel.initTree(AD_Tree_ID, windowNo))
|
||||||
if (treePanel.initTree(AD_Tree_ID, windowNo))
|
echoDeferSetSelectedNodeEvent();
|
||||||
echoDeferSetSelectedNodeEvent();
|
else
|
||||||
else
|
setSelectedNode(gridTab.getRecord_ID());
|
||||||
setSelectedNode(gridTab.getRecord_ID());
|
|
||||||
|
}
|
||||||
}
|
else
|
||||||
else
|
{
|
||||||
{
|
AD_Tree_ID = MTree.getDefaultAD_Tree_ID (Env.getAD_Client_ID(Env.getCtx()), gridTab.getKeyColumnName());
|
||||||
AD_Tree_ID = MTree.getDefaultAD_Tree_ID (Env.getAD_Client_ID(Env.getCtx()), gridTab.getKeyColumnName());
|
treePanel.initTree(AD_Tree_ID, windowNo);
|
||||||
treePanel.initTree(AD_Tree_ID, windowNo);
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
treePanel.getTree().clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}else if(e.isInserting() && gridTab.getRecord_ID() < 0 && gridTab.getTabLevel() > 0 )
|
}else if(e.isInserting() && gridTab.getRecord_ID() < 0 && gridTab.getTabLevel() > 0 )
|
||||||
|
|
Loading…
Reference in New Issue