Skip to content

Commit

Permalink
Merge branch 'develop' into feature/adempiere#1697-add-New-Style-Fiel…
Browse files Browse the repository at this point in the history
…d-Condition
  • Loading branch information
yamelsenih committed Oct 4, 2018
2 parents f06db7b + b65da32 commit f0db0b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion base/src/org/adempiere/process/MigrationLoader.java
Expand Up @@ -72,7 +72,8 @@ public static void main(String[] args) {
.process(org.compiere.process.MigrationFromXML.class)
.withTitle("Import Migration from XML")
.withParameter("FailOnError",failOnError)
.withParameter(MigrationFromXML.FILEPATHORNAME, fileName)
.withParameter(MigrationFromXML.FILEPATHORNAME, fileName) // Old parameter name
.withParameter(MigrationFromXML.FILENAME, fileName) // New parameter name
.withParameter(MigrationFromXML.APPLY, apply)
.withParameter(MigrationFromXML.ISFORCE, force_arg)
.withParameter("Clean", clean)
Expand Down
4 changes: 3 additions & 1 deletion base/src/org/compiere/process/MigrationFromXMLAbstract.java
Expand Up @@ -32,6 +32,8 @@ public abstract class MigrationFromXMLAbstract extends SvrProcess {
private static final int ID_FOR_PROCESS = 53175;
/** Parameter Name for File Path or Name */
public static final String FILEPATHORNAME = "FilePathOrName";
/** Parameter Name for File Name */ // Parameter changed name in DB
public static final String FILENAME = "FileName";
/** Parameter Name for Apply */
public static final String APPLY = "Apply";
/** Parameter Name for Force */
Expand All @@ -47,7 +49,7 @@ public abstract class MigrationFromXMLAbstract extends SvrProcess {
protected void prepare() {
filePathOrName = getParameterAsString(FILEPATHORNAME);
if (filePathOrName == null)
filePathOrName = getParameterAsString("FileName");
filePathOrName = getParameterAsString(FILENAME);
isApply = getParameterAsBoolean(APPLY);
isForce = getParameterAsBoolean(ISFORCE);
}
Expand Down

0 comments on commit f0db0b5

Please sign in to comment.