IDEMPIERE-5424 NPE when setting SysConfig BACKGROUND_JOB_ALLOWED=N (#1488)

This commit is contained in:
Carlos Ruiz 2022-09-17 05:42:19 +02:00 committed by GitHub
parent 6a51f57c08
commit b5c0809072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -681,7 +681,7 @@ public abstract class AbstractProcessDialog extends Window implements IProcessUI
else
chooseSaveParameter(saveName, lastRun);
}else if (event.getTarget().equals(bOK)){
if (runAsJobField.isChecked() && getNotificationType() == null)
if (isBackgroundJob() && getNotificationType() == null)
throw new WrongValueException(notificationTypeField.getComponent(), Msg.getMsg(m_ctx, "FillMandatory") + notificationTypeLabel.getValue());
saveReportOption();
}