diff --git a/src/main/java/org/olat/course/editor/PublishStep00.java b/src/main/java/org/olat/course/editor/PublishStep00.java index d8220d3020774e9d6c88f0ef76c8d10374467f6a..50cb3cb72805b7c366f358c42b4b2869717dd054 100644 --- a/src/main/java/org/olat/course/editor/PublishStep00.java +++ b/src/main/java/org/olat/course/editor/PublishStep00.java @@ -225,16 +225,16 @@ class PublishStep00 extends BasicStep { String nodeId = sds[i].getDescriptionForUnit(); if (nodeId == null) { // a general error - generalErrorTxt = sds[i].getShortDescription(ureq.getLocale()); + generalErrorTxt = sds[i].getShortDescription(getLocale()); break; } String nodeName = publishProcess.getCourseEditorTreeModel().getCourseNode(nodeId).getShortName(); String isFor = "<b>" + nodeName + "</b><br/>"; if (description.isError()) { - errors += "<li>" + isFor + description.getShortDescription(ureq.getLocale()) + "</li>"; + errors += "<li>" + isFor + description.getShortDescription(getLocale()) + "</li>"; errCnt++; } else if (description.isWarning()) { - warnings += "<li>" + isFor + description.getShortDescription(ureq.getLocale()) + "</li>"; + warnings += "<li>" + isFor + description.getShortDescription(getLocale()) + "</li>"; } } warnings += "</ul>"; @@ -242,28 +242,14 @@ class PublishStep00 extends BasicStep { // errorTxt += "<p/>" + errors; warningTxt += "<p/>" + warnings; - - if(errCnt > 0){ - //if an error found - //normally this should already be prevented by offering only correct - //tree nodes in the selection tree. - - return false; - } - if (generalErrorTxt != null) { - addToRunContext("STEP00.generalErrorText", generalErrorTxt); - //TODO: PB: errorElement.setErrorComponent doesn't work, used setValue as workaround - /*FormItem errorFormItem = uifactory.createSimpleErrorText("errorElement", generalErrorTxt); - errorElement.setErrorComponent(errorFormItem, fic);*/ + addToRunContext("STEP00.generalErrorText", generalErrorTxt); errorElement.setValue(generalErrorTxt); errorElement.setVisible(true); return false; } else if (errCnt > 0) { - addToRunContext("STEP00.errorMessage", errorTxt); - /*FormItem errorFormItem = uifactory.createSimpleErrorText("errorElement", errorTxt); - errorElement.setErrorComponent(errorFormItem, this.flc);*/ + addToRunContext("STEP00.errorMessage", errorTxt); errorElement.setValue(errorTxt); errorElement.setVisible(true); return false; diff --git a/src/main/java/org/olat/portfolio/manager/EPXStreamHandler.java b/src/main/java/org/olat/portfolio/manager/EPXStreamHandler.java index 2e9b149319566c91bcc3b6db615b23c52b1bc0d0..4d143c40f12fe5fd007bcb246823c2218660a395 100644 --- a/src/main/java/org/olat/portfolio/manager/EPXStreamHandler.java +++ b/src/main/java/org/olat/portfolio/manager/EPXStreamHandler.java @@ -80,6 +80,7 @@ public class EPXStreamHandler { myStream.alias("structureToStructure", EPStructureToStructureLink.class); myStream.alias("collectionRestriction", CollectRestriction.class); myStream.omitField(EPAbstractMap.class, "ownerGroup"); // see also OLAT-6344 + myStream.omitField(EPAbstractMap.class, "groups"); // see also OLAT-6344 try { InputStream xsltIn = EPXStreamHandler.class.getResourceAsStream("portfolio_without_artefacts.xsl");