- bypassDuplicateI18nKey can be NULL when not set in JSF tag
PRODUCT_LIST_CONTROLLER = CDI.current().select(FinancialsProductListWebViewBean.class).get();
}
+ // Is bypassDuplicateI18nKey set?
+ if (null == this.bypassDuplicateI18nKey) {
+ // By default is not bypass
+ this.setBypassDuplicateI18nKey(Boolean.FALSE);
+ }
+
// Check, if the name has already been used
if (!this.bypassDuplicateI18nKey && PRODUCT_LIST_CONTROLLER.isProductI18nKeyAdded((String) productI18nKey)) {
// Create message
CATEGORY_LIST_CONTROLLER = CDI.current().select(FinancialsCategoryListWebViewBean.class).get();
}
+ // Is bypassDuplicateI18nKey set?
+ if (null == this.bypassDuplicateI18nKey) {
+ // By default is not bypass
+ this.setBypassDuplicateI18nKey(Boolean.FALSE);
+ }
+
// Check, if the name has already been used
if (!this.bypassDuplicateI18nKey && CATEGORY_LIST_CONTROLLER.isCategoryI18nKeyAdded((String) categoryI18nKey)) {
// Create message