Skip to content

Commit 1cbc4b6

Browse files
algobobbrianchandotcom
authored andcommitted
LPD-55455 Restrict template based on portal props
1 parent f33cda6 commit 1cbc4b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/apps/portal-workflow/portal-workflow-kaleo-runtime-impl/src/main/java/com/liferay/portal/workflow/kaleo/runtime/internal/notification/TemplateNotificationMessageGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.liferay.portal.kernel.template.TemplateConstants;
1818
import com.liferay.portal.kernel.template.TemplateManagerUtil;
1919
import com.liferay.portal.kernel.util.Validator;
20+
import com.liferay.portal.util.PropsValues;
2021
import com.liferay.portal.workflow.kaleo.KaleoWorkflowModelConverter;
2122
import com.liferay.portal.workflow.kaleo.model.KaleoInstance;
2223
import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken;
@@ -112,7 +113,7 @@ private Template _getTemplate(
112113
return TemplateManagerUtil.getTemplate(
113114
templateManagerName,
114115
new StringTemplateResource(templateId, notificationTemplate),
115-
false);
116+
!PropsValues.NOTIFICATION_EMAIL_TEMPLATE_ENABLED);
116117
}
117118

118119
private void _populateContextVariables(

0 commit comments

Comments
 (0)