Fix [2823320] - 2pack errors in log messages
https://sourceforge.net/tracker/?func=detail&aid=2823320&group_id=176962&atid=879332
This commit is contained in:
parent
a85b3171be
commit
ea46b2ba52
|
@ -91,7 +91,7 @@ public class AdElementHandler extends AbstractElementHandler {
|
|||
|
||||
|
||||
if (m_AdElement.save(getTrxName(ctx)) == true) {
|
||||
record_log(ctx, 1, m_AdElement.getName(), "Reference",
|
||||
record_log(ctx, 1, m_AdElement.getName(), "Element",
|
||||
m_AdElement.get_ID(), AD_Backup_ID, Object_Status,
|
||||
AD_ELEMENT, get_IDWithColumn(ctx, "AD_Table",
|
||||
"TableName", AD_ELEMENT));
|
||||
|
@ -101,7 +101,7 @@ public class AdElementHandler extends AbstractElementHandler {
|
|||
processedElements.add(m_AdElement.getAD_Element_ID());
|
||||
|
||||
} else {
|
||||
record_log(ctx, 0, m_AdElement.getName(), "Reference",
|
||||
record_log(ctx, 0, m_AdElement.getName(), "Element",
|
||||
m_AdElement.get_ID(), AD_Backup_ID, Object_Status,
|
||||
AD_ELEMENT, get_IDWithColumn(ctx, "AD_Table",
|
||||
"TableName", AD_ELEMENT));
|
||||
|
|
|
@ -70,10 +70,10 @@ public class DynValRuleElementHandler extends AbstractElementHandler {
|
|||
m_ValRule.setType(atts.getValue("Type"));
|
||||
m_ValRule.setCode(atts.getValue("Code"));
|
||||
if (m_ValRule.save(getTrxName(ctx)) == true){
|
||||
record_log (ctx, 1, m_ValRule.getName(),"Task", m_ValRule.get_ID(),AD_Backup_ID, Object_Status,"AD_Val_Rule",get_IDWithColumn(ctx, "AD_Table", "TableName", "AD_Val_Rule"));
|
||||
record_log (ctx, 1, m_ValRule.getName(),"ValRule", m_ValRule.get_ID(),AD_Backup_ID, Object_Status,"AD_Val_Rule",get_IDWithColumn(ctx, "AD_Table", "TableName", "AD_Val_Rule"));
|
||||
}
|
||||
else{
|
||||
record_log (ctx, 0, m_ValRule.getName(),"Task", m_ValRule.get_ID(),AD_Backup_ID, Object_Status,"AD_Val_Rule",get_IDWithColumn(ctx, "AD_Table", "TableName", "AD_Val_Rule"));
|
||||
record_log (ctx, 0, m_ValRule.getName(),"ValRule", m_ValRule.get_ID(),AD_Backup_ID, Object_Status,"AD_Val_Rule",get_IDWithColumn(ctx, "AD_Table", "TableName", "AD_Val_Rule"));
|
||||
throw new POSaveFailedException("Failed to save dynamic validation rule.");
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -80,7 +80,7 @@ public class FieldGroupElementHandler extends AbstractElementHandler {
|
|||
|
||||
|
||||
if (fieldGroup.save(getTrxName(ctx)) == true) {
|
||||
record_log(ctx, 1, fieldGroup.getName(), "Reference",
|
||||
record_log(ctx, 1, fieldGroup.getName(), "FieldGroup",
|
||||
fieldGroup.get_ID(), AD_Backup_ID, Object_Status,
|
||||
X_AD_FieldGroup.Table_Name, get_IDWithColumn(ctx, "AD_Table",
|
||||
"TableName", X_AD_FieldGroup.Table_Name));
|
||||
|
@ -90,7 +90,7 @@ public class FieldGroupElementHandler extends AbstractElementHandler {
|
|||
processedFieldGroups.add(fieldGroup.getAD_FieldGroup_ID());
|
||||
|
||||
} else {
|
||||
record_log(ctx, 0, fieldGroup.getName(), "Reference",
|
||||
record_log(ctx, 0, fieldGroup.getName(), "FieldGroup",
|
||||
fieldGroup.get_ID(), AD_Backup_ID, Object_Status,
|
||||
X_AD_FieldGroup.Table_Name, get_IDWithColumn(ctx, "AD_Table",
|
||||
"TableName", X_AD_FieldGroup.Table_Name));
|
||||
|
|
|
@ -96,10 +96,10 @@ public class ImpFormatRowElementHandler extends AbstractElementHandler {
|
|||
m_ImpFormat_row.setSeqNo(Integer.parseInt(atts.getValue("SeqNo")));
|
||||
m_ImpFormat_row.setStartNo(Integer.parseInt(atts.getValue("StartNo")));
|
||||
if (m_ImpFormat_row.save(getTrxName(ctx)) == true){
|
||||
record_log (ctx, 1, m_ImpFormat_row.getName(),"ImpFormat", m_ImpFormat_row.get_ID(),AD_Backup_ID, Object_Status,"AD_ImpFormat",get_IDWithColumn(ctx, "AD_Table", "TableName", "m_ImpFormat_row"));
|
||||
record_log (ctx, 1, m_ImpFormat_row.getName(),"ImpFormatRow", m_ImpFormat_row.get_ID(),AD_Backup_ID, Object_Status,"AD_ImpFormat",get_IDWithColumn(ctx, "AD_Table", "TableName", "m_ImpFormat_row"));
|
||||
}
|
||||
else{
|
||||
record_log (ctx, 0, m_ImpFormat_row.getName(),"ImpFormat", m_ImpFormat_row.get_ID(),AD_Backup_ID, Object_Status,"AD_ImpFormat",get_IDWithColumn(ctx, "AD_Table", "TableName", "m_ImpFormat_row"));
|
||||
record_log (ctx, 0, m_ImpFormat_row.getName(),"ImpFormatRow", m_ImpFormat_row.get_ID(),AD_Backup_ID, Object_Status,"AD_ImpFormat",get_IDWithColumn(ctx, "AD_Table", "TableName", "m_ImpFormat_row"));
|
||||
throw new POSaveFailedException("Failed to import Import Format Row.");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ public class WorkflowNodeNextElementHandler extends AbstractElementHandler {
|
|||
}
|
||||
else{
|
||||
log.info("m_WFNodeNext save failure");
|
||||
record_log (ctx, 0, String.valueOf(m_WFNodeNext.get_ID()),"WFNode", m_WFNodeNext.get_ID(),AD_Backup_ID, Object_Status,"AD_WF_NodeNext",
|
||||
record_log (ctx, 0, String.valueOf(m_WFNodeNext.get_ID()),"WFNodeNext", m_WFNodeNext.get_ID(),AD_Backup_ID, Object_Status,"AD_WF_NodeNext",
|
||||
get_IDWithColumn(ctx, "AD_Table", "TableName", "AD_WF_NodeNext"));
|
||||
throw new POSaveFailedException("WorkflowNodeNext");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue