Merge remote-tracking branch 'origin/feature/APPS-37_DeclareAndFileAsRecordUI' into feature/APPS-37_DeclareAndFileAsRecordUI

This commit is contained in:
ehardon
2020-06-23 13:49:42 +03:00
2 changed files with 6 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ public class RuleDefinition
private boolean runInBackground = false; private boolean runInBackground = false;
private String ruleType = ConditionsOnRule.ADDED.getWhenConditionValue(); private String ruleType = ConditionsOnRule.ADDED.getWhenConditionValue();
private String path; private String path;
private boolean createRecordPath = false; private Boolean createRecordPath;
private String contentTitle; private String contentTitle;
private String contentDescription; private String contentDescription;
private String rejectReason; private String rejectReason;
@@ -145,7 +145,7 @@ public class RuleDefinition
return this; return this;
} }
public boolean isCreateRecordPath() public Boolean getCreateRecordPath()
{ {
return createRecordPath; return createRecordPath;
} }

View File

@@ -257,7 +257,10 @@ public class RulesAPI extends BaseAPI
JSONObject parameters = new JSONObject(); JSONObject parameters = new JSONObject();
if (ruleProperties.getPath() != null) if (ruleProperties.getPath() != null)
{ {
parameters.put("createRecordPath", ruleProperties.isCreateRecordPath()); if(ruleProperties.getCreateRecordPath() != null)
{
parameters.put("createRecordPath", ruleProperties.getCreateRecordPath());
}
parameters.put("path", ruleProperties.getPath()); parameters.put("path", ruleProperties.getPath());
} }
if (ruleProperties.getContentTitle() != null) if (ruleProperties.getContentTitle() != null)