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;
|
||||
MWindow win = MWindow.get(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();
|
||||
} else {
|
||||
windowName = win.get_Translation("Name");
|
||||
|
|
|
@ -26,6 +26,7 @@ import java.util.Map.Entry;
|
|||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.base.Core;
|
||||
import org.adempiere.exceptions.AdempiereException;
|
||||
import org.adempiere.webui.AdempiereIdGenerator;
|
||||
import org.adempiere.webui.AdempiereWebUI;
|
||||
import org.adempiere.webui.LayoutUtils;
|
||||
|
@ -614,7 +615,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
|||
if (gridTab.isTreeTab() && treePanel != null) {
|
||||
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());
|
||||
if (gridTab.getRecord_ID() >= 0) {
|
||||
|
||||
if (AD_Tree_ID != 0) {
|
||||
treePanel.initTree(AD_Tree_ID, windowNo);
|
||||
Events.echoEvent(ON_DEFER_SET_SELECTED_NODE, this, null);
|
||||
|
@ -622,9 +623,6 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
|||
treePanel.initTree(AD_Tree_ID_Default, windowNo);
|
||||
Events.echoEvent(ON_DEFER_SET_SELECTED_NODE, this, null);
|
||||
}
|
||||
} else {
|
||||
treePanel.getTree().clear();
|
||||
}
|
||||
}
|
||||
|
||||
if (!gridTab.isSingleRow() && !isGridView())
|
||||
|
@ -1144,7 +1142,11 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
|||
{
|
||||
if (nodeID > 0 && logger.isLoggable(Level.WARNING))
|
||||
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
|
||||
|
@ -1228,8 +1230,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
|||
if (refresh)
|
||||
{
|
||||
int AD_Tree_ID = Env.getContextAsInt (Env.getCtx(), getWindowNo(), "AD_Tree_ID", true);
|
||||
if (gridTab.getRecord_ID()>=0)
|
||||
{
|
||||
|
||||
if (AD_Tree_ID != 0)
|
||||
{
|
||||
if (treePanel.initTree(AD_Tree_ID, windowNo))
|
||||
|
@ -1243,11 +1244,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
|||
AD_Tree_ID = MTree.getDefaultAD_Tree_ID (Env.getAD_Client_ID(Env.getCtx()), gridTab.getKeyColumnName());
|
||||
treePanel.initTree(AD_Tree_ID, windowNo);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
treePanel.getTree().clear();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}else if(e.isInserting() && gridTab.getRecord_ID() < 0 && gridTab.getTabLevel() > 0 )
|
||||
|
|
Loading…
Reference in New Issue