fixes IDEMPIERE-50 Migration script never uses project comment
http://jira.idempiere.com/browse/IDEMPIERE-50
This commit is contained in:
parent
da619d941f
commit
3a009bfcb4
|
@ -542,7 +542,13 @@ public abstract class Convert
|
||||||
|
|
||||||
private static void writeLogMigrationScript(Writer w, String statement) throws IOException
|
private static void writeLogMigrationScript(Writer w, String statement) throws IOException
|
||||||
{
|
{
|
||||||
String prm_COMMENT = MSysConfig.getValue("DICTIONARY_ID_COMMENTS");
|
boolean isUseCentralizedID = "Y".equals(MSysConfig.getValue("DICTIONARY_ID_USE_CENTRALIZED_ID", "Y")); // defaults to Y
|
||||||
|
boolean isUseProjectCentralizedID = "Y".equals(MSysConfig.getValue("PROJECT_ID_USE_CENTRALIZED_ID", "N")); // defaults to N
|
||||||
|
String prm_COMMENT;
|
||||||
|
if (!isUseCentralizedID && isUseProjectCentralizedID)
|
||||||
|
prm_COMMENT = MSysConfig.getValue("PROJECT_ID_COMMENTS");
|
||||||
|
else
|
||||||
|
prm_COMMENT = MSysConfig.getValue("DICTIONARY_ID_COMMENTS");
|
||||||
// log time and date
|
// log time and date
|
||||||
SimpleDateFormat format = DisplayType.getDateFormat(DisplayType.DateTime);
|
SimpleDateFormat format = DisplayType.getDateFormat(DisplayType.DateTime);
|
||||||
String dateTimeText = format.format(new Timestamp(System.currentTimeMillis()));
|
String dateTimeText = format.format(new Timestamp(System.currentTimeMillis()));
|
||||||
|
|
Loading…
Reference in New Issue