Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
JAFFA-691:Update error message to include Form Name when the form cou…
Browse files Browse the repository at this point in the history
…ld not be auto-printed due to bad printer setup. Checked-in changes on behalf of Vinod S.
  • Loading branch information
Nagaraju Punna committed Jul 2, 2020
1 parent 458c06e commit 3e091e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exception.org.jaffa.modules.printing.services.FormProcessor.OutputTypeMismatch=I
exception.org.jaffa.modules.printing.components.exceptions.FormSelectionException.AdditionalDataNotFound=Form detail data is required before generating the form.
exception.org.jaffa.modules.printing.components.exceptions.FormSelectionException.InvalidAdditionalComponent=Additional Component is null or not found.
exception.org.jaffa.modules.printing.components.exceptions.FormSelectionException.InvalidCopies=In order to print, Copies must be greater than zero.
exception.org.jaffa.modules.printing.components.exceptions.FormSelectionException.InvalidOutputDestination=The output destination (Printer, E-Mail or Publish) was not provided.
exception.org.jaffa.modules.printing.components.exceptions.FormSelectionException.InvalidOutputDestination=The output destination ([label.Jaffa.Printing.FormSelection.Printer] or [label.Jaffa.Printing.FormSelection.Email]) was not provided for [label.Jaffa.Printing.FormSelection.FormName] {0}.
exception.org.jaffa.modules.printing.components.exceptions.FormSelectionException.NoFormDefinedForEvent=There are no Forms configured for Event '{0}'. Forms not generated.
exception.org.jaffa.modules.printing.components.exceptions.FormSelectionException.FormPreviewEventNotDefined=No Form Event is defined for this link.
exception.org.jaffa.modules.printing.components.exceptions.FormSelectionException.SecurityException=You do not have permission to generate this form or label.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,9 @@ protected void validateFields(GridModelRow row, ApplicationExceptions appExps, b
EditBoxModel mPrinter = (EditBoxModel) row.get("printer");
EditBoxModel mEmail = (EditBoxModel) row.get("email");
CheckBoxModel mPublish = (CheckBoxModel) row.get("publish");
if ((mPrinter.getValue() == null) && (mEmail.getValue() == null) && (mPublish.getState() != true) && !showForm) {
appExps.add(new FormSelectionException(FormSelectionException.INVALID_OUTPUT_DESTINATION));
String formName = row.get("formName") != null ? (String) row.get("formName") : "";
if ((mPrinter.getValue() == null) && (mEmail.getValue() == null) && (mPublish.getState() != true)) {
appExps.add(new FormSelectionException(FormSelectionException.INVALID_OUTPUT_DESTINATION, formName));
}
}
//Validate AdditionalData exist or not
Expand Down

0 comments on commit 3e091e9

Please sign in to comment.