Skip to content

Commit

Permalink
#30669 move checkValid call
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinogiardino committed Nov 21, 2024
1 parent 5db3bd8 commit dc3ad8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
*/
public class ContentImportForm extends Validated {

@NotNull(message = "Content Type is required")
@NotNull(message = "A Content Type id or variable is required")
private final String contentType;

private final String language;

@NotNull(message = "Workflow Action ID is required")
@NotNull(message = "A Workflow Action id is required")
private final String workflowActionId;

private final List<String> fields;
Expand All @@ -33,6 +33,7 @@ public ContentImportForm(
this.language = language;
this.workflowActionId = workflowActionId;
this.fields = fields;
this.checkValid();
}

public String getContentType() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public String createJob(
final HttpServletRequest request) throws DotDataException, JsonProcessingException {

params.checkValid();
params.getForm().checkValid();

final Map<String, Object> jobParameters = createJobParameters(command, params, user, request);
processFileUpload(params, jobParameters, request);
Expand Down

0 comments on commit dc3ad8c

Please sign in to comment.