fixes IDEMPIERE-50 Migration script never uses project comment

http://jira.idempiere.com/browse/IDEMPIERE-50
This commit is contained in:
Carlos Ruiz 2011-08-04 23:18:46 -05:00
parent da619d941f
commit 3a009bfcb4
1 changed files with 7 additions and 1 deletions

View File

@ -542,7 +542,13 @@ public abstract class Convert
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
SimpleDateFormat format = DisplayType.getDateFormat(DisplayType.DateTime);
String dateTimeText = format.format(new Timestamp(System.currentTimeMillis()));